sharmadhiraj / infinite_listview_package

Flutter package that provides infinite scroll listiview widget.

Home Page:https://pub.dev/packages/infinite_listview_package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

Flutter package that provides infinite scroll listiview widget.

https://pub.dev/packages/infinite_listview_package

License:Apache License 2.0


Languages

Language:Dart 80.0%Language:HTML 13.3%Language:Swift 4.8%Language:Kotlin 1.5%Language:Objective-C 0.4%