Skip to content

Commit

Permalink
Use SuperListView
Browse files Browse the repository at this point in the history
  • Loading branch information
getBoolean committed Apr 12, 2024
1 parent f5589a8 commit 95a2b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/pagination/lib/src/paginated_view.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:pagination/src/paginated_result.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:pagination/src/paginated_result.dart';
import 'package:super_sliver_list/super_sliver_list.dart';

final _pageBucket = PageStorageBucket();

Expand Down Expand Up @@ -63,7 +64,7 @@ class PaginatedView<T> extends ConsumerWidget {
// fail silently as the provider error state is handled inside the ListView
}
},
child: ListView.builder(
child: SuperListView.builder(
key: PageStorageKey(restorationId),
shrinkWrap: shrinkWrap,
itemCount: totalResults,
Expand Down
1 change: 1 addition & 0 deletions packages/pagination/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
flutter:
sdk: flutter
hooks_riverpod: ^2.5.1
super_sliver_list: ^0.4.1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 95a2b27

Please sign in to comment.