infinite_scroll_pagination 5.1.1
infinite_scroll_pagination: ^5.1.1 copied to clipboard
Lazily load and display pages of items as the user scrolls down your screen.
5.1.1 - 2025-08-28 #
5.1.0 - 2025-06-18 #
Added #
- nextIntPageKey convenience getter for int pages starting at 1
- lastPageIsEmpty convenience getter for APIs which return empty pages when no more data is available
- flutter bloc example
Changed #
- Updated migration guide on how to handle final page
Fixed #
- disposing PagingController cancels fetch
5.0.0 - 2025-02-24 #
Added #
PagingListenerwidget to connect aPagingControllerto aPagedLayoutBuilder.
Changed #
PagingControllerno longer hasaddPageRequestListenermethod andfirstPageKeyparameter. Use thefetchPageparameter of the constructor instead.PagingControllerno longer has theitemList,error, andnextPageKeygetters and setters. All values are now stored inPagingState.PagingControllerno longer has theappendPageandappendLastPagemethods. Use thecopyWithmethod ofPagingStateto update itspages,keys, andhasNextPagefields.PagingControllerno longer has theretryLastFailedRequestmethod. You can simply callfetchNextPageto try again.PagingControllerno longer has theinvisibleItemsThresholdfield. It is now configured inPagedChildBuilderDelegate.PagingControllernow features getters matching the fields ofPagingStateas well asmapItemsto modify the items.PagedLayoutBuilderno longer acceptspagingControlleras a parameter. It now takesPagingStateandfetchNextPageinstead.PagingStatenow usespages(List<List<ItemType>>) instead ofitemList(List<ItemType>). A new extension getteritemsis provided for flattening.PagingStatenow featureskeys, a list storing all fetched keys, andhasNextPagereplacingnextPageKey.PagingStatenow includesisLoading, which tracks whether a request is in progress.PagingStatenow provideserroras typeObject?instead ofdynamic.PagingStatenow includesmapItemsandfilterItemsextension methods for modifying items conveniently.
Fixed #
PagingControllernow deduplicates requests.PagingControllerrefresh operations now cancel previous requests.- Off-by-one error in
invisibleItemsThresholdcalculation. - Failure to trigger page request when
invisibleItemsThresholdis too large. - Animating between states with
animateTransitions.
4.1.0 - 2024-11-09 #
4.0.0 - 2023-08-17 #
Added #
- PagedMasonryGridView.
- PagedPageView.
- Support for the box protocol in PagedLayoutBuilder.
Changed #
- Renames
PagedSliverBuilderto PagedLayoutBuilder.
3.0.1+1 - 2021-05-23 #
Added #
- Flutter Favorite status to the README.
3.0.1 - 2021-03-08 #
Added #
- New unit tests.
Changed #
- Updates sliver_tools dependency.
Fixed #
- Code formatting in
ListenableListener.
3.0.0 - 2021-03-04 #
Changed #
- Promotes null safety to stable release.
- Migrates example project to null safety.
- Migrates code samples to null safety.
2.3.0 - 2021-01-15 #
Added #
- alternative constructor to PagingController receiving an initial PagingState.
Changed #
- Cookbook file name.
- LICENSE file.
2.2.3 - 2020-12-14 #
Fixed #
- Bug in which manually resetting to a previous page would stop requesting subsequent pages.
2.2.2 - 2020-11-04 #
Added #
- Condition to avoid requesting the first page when there are preloaded items.
2.2.1 - 2020-10-21 #
Added #
shrinkWrapFirstPageIndicatorsproperty to PagedSliverList, PagedSliverGrid, and PagedSliverBuilder.
Changed #
- Improve error message displayed when calling a disposed PagingController.
Fixed #
- Separator being displayed on completed lists.
2.2.0+1 - 2020-10-19 #
Changed #
- Constraints the Flutter SDK dependency to a minimum version of 1.22.0.
2.2.0 - 2020-10-18 #
Added #
- New constructor parameters from ScrollView to PagedListView and PagedGridView.
2.1.0+1 - 2020-10-13 #
2.1.0 - 2020-10-10 #
Added #
- noMoreItemsIndicatorBuilder to PagedChildBuilderDelegate.
- Properties to both grid widgets to let you choose whether to display the progress, error, and completed listing indicators as grid items or below the grid, as in the list widgets.
2.0.1 - 2020-10-03 #
Fixed #
- PagingController not calling its status listeners.
2.0.0 - 2020-10-02 #
Changed #
- BREAKING CHANGE: Replaces PagedDataSource and PagedStateChangeListener with PagingController, favoring composition over inheritance.
1.1.1 - 2020-09-23 #
Removed #
- Scroll from first page progress indicator, first page error indicator, and no items found indicator.



