Skip to content

Lazy loading Widget to load more items by the index of the item to increment you a list like infinite scroll.

License

Notifications You must be signed in to change notification settings

isacjunior/lazy_loading_list

Repository files navigation

lazy_loading_list

Lazy loading Widget to load more by index item to incresent you list like infinite scroll.

Getting Started

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';

Usage

ListView.builder(
    itemCount: items.length,
    itemBuilder: (BuildContext context, int index) {
        return LazyLoadingList(
            initialSizeOfItems: 10,
            index: index,
            child: buildItem(),
            loadMore: loadMoreItems,
            hasMore: hasMoreToLoad,
        );
    },
),

About

Lazy loading Widget to load more items by the index of the item to increment you a list like infinite scroll.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published