v1.0.1
lazy_loading_list
Lazy loading Widget to load more items by the index of the item to increment you a list like infinite scroll.
41Likes 11830-day downloads135Pub points
AndroidiOSWebmacOSWindowsLinux
Lazy loading Widget to load more items by the index of the item to increment you a list like infinite scroll.
{"sdk":"flutter"}{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
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,
);
},
),