lemmur-app-android/lib/hooks/infinite_scroll.dart

12 lines
288 B
Dart
Raw Normal View History

import 'package:flutter_hooks/flutter_hooks.dart';
import '../widgets/infinite_scroll.dart';
2021-02-24 20:52:18 +01:00
InfiniteScrollController useInfiniteScrollController() {
final controller = useMemoized(() => InfiniteScrollController());
useEffect(() => controller.dispose, []);
return controller;
}