Skip to content
pubscout

loadmore

2.1.0, released 4 years ago by kikt.top

A Flutter library for ListView and SliverList that adds scroll-to-bottom loading functionality.

WASM-ready
$ flutter pub add loadmore
Source repository

What it does

It wraps a ListView or SliverList to detect when the user scrolls to the bottom and triggers a load more callback. It supports pagination state handling like loading, success, fail, and finish.

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

Use it when

  • You need infinite scrolling or pagination for a ListView or SliverList.
  • You want a simple widget wrapper to handle loading more items as the user scrolls.

Skip it when

  • You are using widgets other than ListView or SliverList.
  • Not documented for non-list scrollable views.

Strengths

  • Supports both ListView and SliverList.
  • Customizable delegate and text builder for loading states.
  • Handles null safety.

Weaknesses

  • Only supports ListView and SliverList, other widgets are not supported.
  • Limited documentation outside of the basic README.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
LoadMore(
  isFinish: count >= 60,
  onLoadMore: _loadMore,
  child: ListView.builder(
    itemBuilder: (BuildContext context, int index) {
      return Container(
        child: Text(list[index].toString()),
        height: 40.0,
        alignment: Alignment.center,
      );
    },
    itemCount: count,
  ),
)

Alternatives

Packages that do the same job and could replace loadmore.