Skip to content

Commit

Permalink
fix error with SuperSliverList
Browse files Browse the repository at this point in the history
  • Loading branch information
getBoolean committed Apr 14, 2024
1 parent 94bffe0 commit ab40c11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/pub/pagination/lib/src/paginated_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ class PaginatedView<T> extends ConsumerWidget {
final indexInPage = index % pageSize;
final AsyncValue<PaginatedResult<T>> responseAsync =
ref.watch(pageItemsProvider(page));
if (indexInPage >=
(responseAsync.valueOrNull?.results.length ?? 20)) {
return null;
}
return AnimatedSwitcher(
duration: transitionDuration,
switchInCurve: transitionCurve,
Expand Down

0 comments on commit ab40c11

Please sign in to comment.