easy_loading 0.0.4 copy "easy_loading: ^0.0.4" to clipboard
easy_loading: ^0.0.4 copied to clipboard

Flutter plugin for loading more listview and grid view.

easy_loading #

Install #

dependencies:
  easy_loading: ^latest

Usage #

ListView #

EasyLoadingListView(
  loadMore: () async {
    await _loadNext();
  },
  hasMore: () => _hasNextPage,
  itemCount: () => items.length,
  itemBuilder: (context, index) {
    return _itemBuilder(items[index]);
  },
)

GridView #

EasyLoadingGridView(
  loadMore: () async {
    await _loadNext();
  },
  hasMore: () => _hasNextPage,
  itemCount: () => items.length,
  itemBuilder: (context, index) {
    return _itemBuilder(items[index]);
  },
)

SliverGrid #

EasyLoadingSliverGrid(
  loadMore: () async {
    await _loadNext();
  },
  hasMore: () => _hasNextPage,
  itemCount: () => items.length,
  itemBuilder: (context, index) {
    return _itemBuilder(items[index]);
  },
)

3
likes
20
pub points
74%
popularity

Publisher

unverified uploader

Flutter plugin for loading more listview and grid view.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, rxdart

More

Packages that depend on easy_loading