v1.0.1
lazy_loading_list
लेजी लोडिंग विजेट जो आइटम के इंडेक्स के द्वारा एक सूची में अधिक आइटम लोड करता है, जैसे अनंत स्क्रॉल।
41लाइक 11830-दिन डाउनलोड135Pub अंक
AndroidiOSWebmacOSWindowsLinux
लेजी लोडिंग विजेट जो आइटम के इंडेक्स के द्वारा एक सूची में अधिक आइटम लोड करता है, जैसे अनंत स्क्रॉल।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Lazy loading Widget to load more by index item to incresent you list like infinite scroll.
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
lazy_loading_list: version
In your library add the following import:
import 'package:lazy_loading_list/lazy_loading_list.dart';
ListView.builder(
itemCount: items.length,
itemBuilder: (BuildContext context, int index) {
return LazyLoadingList(
initialSizeOfItems: 10,
index: index,
child: buildItem(),
loadMore: loadMoreItems,
hasMore: hasMoreToLoad,
);
},
),