Skip to content

Releases: EdsonBueno/infinite_scroll_pagination

5.0.0

24 Feb 17:08
Compare
Choose a tag to compare

Added

  • PagingListener widget to connect a PagingController to a PagedLayoutBuilder.

Changed

  • PagingController no longer has addPageRequestListener method and firstPageKey parameter. Use the fetchPage parameter of the constructor instead.
  • PagingController no longer has the itemList, error, and nextPageKey getters and setters. All values are now stored in PagingState.
  • PagingController no longer has the appendPage and appendLastPage methods. Use the copyWith method of PagingState to update its pages, keys, and hasNextPage fields.
  • PagingController no longer has the retryLastFailedRequest method. You can simply call fetchNextPage to try again.
  • PagingController no longer has the invisibleItemsThreshold field. It is now configured in PagedChildBuilderDelegate.
  • PagingController now features getters matching the fields of PagingState as well as mapItems to modify the items.
  • PagedLayoutBuilder no longer accepts pagingController as a parameter. It now takes PagingState and fetchNextPage instead.
  • PagingState now uses pages (List<List<ItemType>>) instead of itemList (List<ItemType>). A new extension getter items is provided for flattening.
  • PagingState now features keys, a list storing all fetched keys, and hasNextPage replacing nextPageKey.
  • PagingState now includes isLoading, which tracks whether a request is in progress.
  • PagingState now provides error as type Object? instead of dynamic.
  • PagingState now includes mapItems and filterItems 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

09 Nov 19:51
Compare
Choose a tag to compare

Added

Changed

  • Updates example.

Removed

  • pubspec.lock from version control.

4.0.0

17 Aug 19:58
Compare
Choose a tag to compare

3.1.0

04 Jul 13:25
Compare
Choose a tag to compare

3.0.1+1

23 May 12:18
Compare
Choose a tag to compare

3.0.1

08 Mar 10:23
Compare
Choose a tag to compare
  • Fixes code formatting in ListenableListener.
  • Updates sliver_tools dependency.
  • Adds new unit tests.

3.0.0

04 Mar 20:34
Compare
Choose a tag to compare
  • Promotes null safety to stable release.
  • Migrates example project to null safety.
  • Migrates code samples to null safety.

3.0.0-nullsafety.0

06 Feb 17:11
Compare
Choose a tag to compare
3.0.0-nullsafety.0 Pre-release
Pre-release
  • Migrates to null safety.

2.3.0

15 Jan 10:47
Compare
Choose a tag to compare

2.2.4

08 Jan 19:19
Compare
Choose a tag to compare
  • Fixes new page requests happening before the end of the current frame.