项目作者: sharmadhiraj

项目描述 :
Flutter package that provides infinite scroll listiview widget.
高级语言: Dart
项目地址: git://github.com/sharmadhiraj/infinite_listview_package.git
创建时间: 2020-06-17T07:56:41Z
项目社区:https://github.com/sharmadhiraj/infinite_listview_package

开源协议:Apache License 2.0

下载


Infinite ListView

The Infinite ListView Flutter package provides
an infinite scroll listview widget.

Getting Started

  1. Installation Guide
  2. Example

Usage Guide

  1. Create a class extending InfiniteListView<T>, where T is the type of item on the list you are
    going to build.
  2. Implement the getItemWidget(T item) method. This method should return a widget for a single
    item on the list.
  3. Implement the getListData(int pageNumber) method. This is an async method and should return a
    list of items according to the pageNumber parameter. This method should
    return Future.error(...) in case of an error.
  4. Override
    the getLoadingWidget(), getPaginationLoadingWidget(), getErrorWidget(dynamic error),
    and getPaginationErrorWidget(dynamic error) methods to customize widgets while the request is
    in progress and in case of an error.

I’m always working on making improvements. If you have any feedback, issues, or suggestions, feel
free to reach out. Happy coding!