infinite_scroll_pagination 5.0.0
infinite_scroll_pagination: ^5.0.0 copied to clipboard
Lazily load and display pages of items as the user scrolls down your screen.
5.0.0 - 2025-02-24 #
Added #
PagingListener
widget to connect aPagingController
to aPagedLayoutBuilder
.
Changed #
PagingController
no longer hasaddPageRequestListener
method andfirstPageKey
parameter. Use thefetchPage
parameter of the constructor instead.PagingController
no longer has theitemList
,error
, andnextPageKey
getters and setters. All values are now stored inPagingState
.PagingController
no longer has theappendPage
andappendLastPage
methods. Use thecopyWith
method ofPagingState
to update itspages
,keys
, andhasNextPage
fields.PagingController
no longer has theretryLastFailedRequest
method. You can simply callfetchNextPage
to try again.PagingController
no longer has theinvisibleItemsThreshold
field. It is now configured inPagedChildBuilderDelegate
.PagingController
now features getters matching the fields ofPagingState
as well asmapItems
to modify the items.PagedLayoutBuilder
no longer acceptspagingController
as a parameter. It now takesPagingState
andfetchNextPage
instead.PagingState
now usespages
(List<List<ItemType>>
) instead ofitemList
(List<ItemType>
). A new extension getteritems
is provided for flattening.PagingState
now featureskeys
, a list storing all fetched keys, andhasNextPage
replacingnextPageKey
.PagingState
now includesisLoading
, which tracks whether a request is in progress.PagingState
now provideserror
as typeObject?
instead ofdynamic
.PagingState
now includesmapItems
andfilterItems
extension methods for modifying items conveniently.
Fixed #
PagingController
now deduplicates requests.PagingController
refresh operations now cancel previous requests.- Off-by-one error in
invisibleItemsThreshold
calculation. - Failure to trigger page request when
invisibleItemsThreshold
is 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
PagedSliverBuilder
to 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 #
shrinkWrapFirstPageIndicators
property 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.