flutter_infinite_scroll 0.0.2 copy "flutter_infinite_scroll: ^0.0.2" to clipboard
flutter_infinite_scroll: ^0.0.2 copied to clipboard

Opinionated package to lazily load and display small chunks of items as the user scrolls down the screen

flutter_infinite_scroll #

Intended for personal use in my projects but feel free to use also.

Opinionated package to lazily load and display small chunks of items as the user scrolls down the screen. Uses Dio and flutter bloc library

Getting Started #

Install package with: flutter pub add flutter_infinite_scroll

Default options #

InfiniteScrollPage( loadMoreEnabled: false, perPage: 10, debounceMaxPeriod: 5000, // milliseconds, }, );

Usage #

  • Data endpoint must return a single array like following [ { id: 1, title: 'data title', description: 'data description', avatarPath: 'avatar path' (optional) }, ... ... ]

  • Endpoint is Post fixed with ?page=0 to help server side determine the next page e.g: https://example.com?page=1

1
likes
100
pub points
25%
popularity

Publisher

unverified uploader

Opinionated package to lazily load and display small chunks of items as the user scrolls down the screen

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

bloc_test, dio, equatable, firebase_auth, flutter, flutter_bloc, mockito, sealed_unions

More

Packages that depend on flutter_infinite_scroll