Releases: EdsonBueno/infinite_scroll_pagination
Releases · EdsonBueno/infinite_scroll_pagination
5.1.1
5.1.0
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
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
4.0.0
- Renames
PagedSliverBuilderto PagedLayoutBuilder and adds support for creating layouts using the box protocol. - Introduces PagedMasonryGridView.
- Introduces PagedPageView.
3.1.0
3.0.1+1
- Adds Flutter Favorite status to the README.
3.0.1
- Fixes code formatting in ListenableListener.
- Updates sliver_tools dependency.
- Adds new unit tests.
3.0.0
- Promotes null safety to stable release.
- Migrates example project to null safety.
- Migrates code samples to null safety.
3.0.0-nullsafety.0
- Migrates to null safety.