infinite_listview_package 1.0.3 infinite_listview_package: ^1.0.3 copied to clipboard
Flutter package that provides Infinite scroll listview widget.
Infinite ListView #
Flutter package that provides infinite scroll listiview widget.
Getting Started #
Usage Guide #
- Create a class extending
InfiniteListView<T>
, where T is type of item on list you are going to build. - Implement method
getItemWidget(T item)
, this method should return widget for single item on list. - Implement method
getListData(int pageNumber)
, this isasync
method and should return list of item according to pageNumber in parameter. This method should returnFuture.error(...)
in case of error. - Override method
getLoadingWidget()
,getPaginationLoadingWidget()
,getErrorWidget(dynamic error)
,getPaginationErrorWidget(dynamic error)
to customize widgets while request in progress and error.