v0.6.0load_items
ListView या GridView के नीचे स्क्रॉल करने पर अधिक आइटम लोड करें।
6लाइक 3430-दिन डाउनलोड160Pub अंक
AndroidiOSWebmacOSWindowsLinux
ListView या GridView के नीचे स्क्रॉल करने पर नए आइटम लोड करें
{"sdk":"flutter"}{"sdk":"flutter"}^6.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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.