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,
);
},
),