Releases: EdsonBueno/infinite_scroll_pagination
Releases · EdsonBueno/infinite_scroll_pagination
5.0.0
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
4.0.0
- Renames
PagedSliverBuilder
to 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.
2.3.0
- Adds an alternative constructor to PagingController receiving an initial PagingState.
- Changes Cookbook file name.
- Updates LICENSE file.
2.2.4
- Fixes new page requests happening before the end of the current frame.