Search packages, repositories and app categories

Package detailsv0.1.0

pagination

A Powerful Flutter Pagination Library with loading indicator at bottom.

30-day downloads
15
Likes
28
Pub points
40

Install package

flutter pub add pagination

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A powerful Flutter library designed for implementing smooth pagination in lists with a built-in loading indicator at the bottom. It simplifies lazy loading by automatically detecting when the user reaches the end of the list and triggers data fetching. Ideal for apps displaying large datasets, such as social feeds, product listings, or news streams. The package is lightweight, easy to integrate, and enhances user experience with seamless scrolling and visual feedback during data loading.

Use cases

  • Infinite scroll lists
  • Social media feeds
  • Product catalogues
  • News or blog listings
  • Data-heavy dashboards

Key features

  • Built-in loading indicator
  • Automatic end-of-list detection
  • Simple integration
  • Customizable loading UI
  • Supports async data fetching

Suitable for

  • Developers building infinite scroll interfaces
  • Apps with large datasets
  • Projects requiring smooth lazy loading
  • Beginners learning pagination patterns
  • UI-focused mobile applications

Considerations

  • Requires manual handling of data source
  • No built-in error handling
  • Limited customization for loading state
  • Not optimized for complex nested lists
  • Depends on external data providers

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

pagination

pub package
A Pagination Library for Flutter (with Web Support).

How to Use

just add below in pubspec.yaml

pagination: ^0.1.0
import 'package:pagination/pagination.dart';

Demo Code:

    PaginationList<User>(
        separatorWidget: Container(
          height: 0.5,
          color: Colors.black,
        ),
        itemBuilder: (BuildContext context, User user) {
          return ListTile(
            title:
                Text(user.prefix + " " + user.firstName + " " + user.lastName),
            subtitle: Text(user.designation),
            leading: IconButton(
              icon: Icon(Icons.person_outline),
              onPressed: () => null,
            ),
            onTap: () => print(user.designation),
            trailing: Icon(
              Icons.call,
              color: Colors.green,
            ),
          );
        },
        pageFetch: pageFetch,
        onError: (dynamic error) => Center(
          child: Text('Something Went Wrong'),
        ),
        ...
        onEmpty: Center(
          child: Text('Empty List'),
        ),
      ),


For more info:

Email: ssvekariya11@gmail.com

Categories

Source repository

Projects using this package