Skip to content
pubscout

very_good_infinite_list

0.9.0, released 2 years ago by verygood.ventures

Easily display paginated and infinite scrolling lists in Flutter.

WASM-ready
$ flutter pub add very_good_infinite_list
Source repository

What it does

A Flutter library for lazily fetching and rendering paginated data. It provides an InfiniteList widget with built-in support for loading, error, and empty states, as well as automatic fetching when scrolling near the end of the list.

AI-written summary of version 0.9.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building activity feeds, news feeds, or lists requiring infinite scrolling
  • You need built-in handling for loading states, error states, and empty states during pagination

Skip it when

  • You are not using Flutter
  • You only need a static list without pagination or lazy loading

Strengths

  • Easy to implement with an API similar to ListView.builder
  • Customizable loading, error, and empty builders
  • Supports reverse scrolling, scroll controllers, and debouncing

Weaknesses

  • Relies on external state management to actually fetch and store the paginated data
  • Limited to list-based scrolling behaviors

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
InfiniteList(
  itemCount: _items.length,
  isLoading: _isLoading,
  onFetchData: _fetchData,
  itemBuilder: (context, index) {
    return ListTile(
      title: Text(_items[index]),
    );
  },
)

Alternatives

Packages that do the same job and could replace very_good_infinite_list.

Works with

Packages commonly used together with very_good_infinite_list: ones it builds on, ones built on it, and its own family.