paginated_builder 1.0.1 copy "paginated_builder: ^1.0.1" to clipboard
paginated_builder: ^1.0.1 copied to clipboard

A set of Widgets to paginate through data from any data source

1.0.1 #

  • Account for race conditions when getting a chunk and listening for changes. Previously, we got the chunk and then listened for changes after updating the UI. There was a chance that an update could have come in before we started listening, causing data to be missed. Now, we listen for changes before requesting the chunk and immediately pause the stream sub until after the UI is updated. While the chunk is getting processed, any changes get queued and emitted once the UI updates.

1.0.0 #

!Breaking:

  • SnapshotState.stable is now SnapshotState.added

  • onItemReceived callback now accepts a third positional argument for SnapshotState

    Before #

    onItemReceived: (index, data) {...}

    After #

    onItemReceived: (index, data, state) {...}

  • feat: Update

    • Adds SnapshotState.updated
    • Adds uniqueIdFinder to PaginatedSnapshot<T>
      • Required when using SnapshotState.updated (will throw if not provided)

0.2.0 #

!Breaking: Flutter/Dart version bump dart: >= 3.0.0 Flutter: >= 3.10.0

  • feat: Delete
    • Adds PaginatedSnapshot<T> to allow for deletion of items in paginators

0.1.0 #

  • Initial release
5
likes
160
pub points
0%
popularity

Publisher

verified publishersupposedlycoding.com

A set of Widgets to paginate through data from any data source

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

chunk, equatable, flutter

More

Packages that depend on paginated_builder