Skip to main content

flutter_infinite_scroll_pagination 1.3.1 copy "flutter_infinite_scroll_pagination: ^1.3.1" to clipboard
flutter_infinite_scroll_pagination: ^1.3.1 copied to clipboard

This Flutter package offers effortless infinite scroll loading with just one line of wrapping no complex setup or controller needed for easy integration.

Introduction #

Experience a whole new level of convenience with just a single line of wrapping no complex setup or controller required for effortless infinite scroll loading.

Important

The Scrollable widget (e.g., ListView, GridView) must use a NestedScrollController or a subclass. Using a regular ScrollController will cause the infinite scroll pagination to fail.

Preview #

The GIF below demonstrates the package in action. Please note that due to compression, the animation may appear distorted or choppy.

preview

Why Use This Library? #

This package eliminates the usual boilerplate of infinite scroll implementations. Simply wrap your scrollable widget with InfiniteScrollPagination, and it just works. Perfect for adding infinite scroll to lists, grids, or any scrollable content without worrying about controllers or extra setup.

Usage #

InfiniteScrollPagination(
    reverse: false,
    isEnabled: ...,
    onLoadMore: ...,
    preloadOffset: 500, // Default is zero.
    loadingIndicator: ...,
    child: ListView.builder(
        itemCount: _items.length,
        itemBuilder: (context, index) {
            return Text(_items[index]);
        },
    ),
),
3
likes
160
points
1.09k
downloads

Documentation

API reference

Publisher

verified publisherttangkong.dev

Weekly Downloads

This Flutter package offers effortless infinite scroll loading with just one line of wrapping no complex setup or controller needed for easy integration.

Repository (GitHub)
View/report issues

Topics

#infinite-scroll #nested-scroll #pagination #load-more

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_nested_scroll

More

Packages that depend on flutter_infinite_scroll_pagination