v0.6.0load_items
Load more items when scrolling to the bottom of a ListView or GridView.
6Likes 2230-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
Load new items when scrolling to the bottom of a ListView or GridView
English project snapshot. Visit GitHub for the latest content.
Load new items into either a list or a grid as you scroll down.
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.
Dependency list 3 items
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗