Skip to content

Releases: EdsonBueno/infinite_scroll_pagination

5.1.1

28 Aug 12:50

Choose a tag to compare

Changed

  • Update example widget usage

Fixed

  • Null check error in pagedlayoutbuilder
  • Bloc example state equality
  • Paging state hash code

5.1.0

18 Jun 11:39

Choose a tag to compare

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

24 Feb 17:08

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

Choose a tag to compare

Added

Changed

  • Updates example.

Removed

  • pubspec.lock from version control.

4.0.0

17 Aug 19:58

Choose a tag to compare

3.1.0

04 Jul 13:25

Choose a tag to compare

3.0.1+1

23 May 12:18

Choose a tag to compare

3.0.1

08 Mar 10:23

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

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

Choose a tag to compare

3.0.0-nullsafety.0 Pre-release
Pre-release
  • Migrates to null safety.