v0.6.0load_items
Load more items when scrolling to the bottom of a ListView or GridView.
6Likes 3430-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
Load new items when scrolling to the bottom of a ListView or GridView
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0English project snapshot. Visit GitHub for the latest content.
Load new items into either a list or a grid as you scroll down.
screencast
ListView or GridViewItemsLoaderListView and GridViewloadScrollFactorListenableListenableLoadItems<Item>(
type: LoadItemsType.grid,
itemBuilder: (context, Item item, int index) {
return ListTile(title: item.title);
},
itemsLoader: (List<Item> currentItems) {
return await Api.fetch({skip: currentItems.length});
},
gridCrossAxisCount: 3,
)
See example for full list and grid example.