FLUTTER ECOSYSTEM

vedartm/pagination_view

Flutter package to simplify pagination of list of items from the internet.

pagination_view project cover
Stars
151
Forks
27
Last push (UTC)
Jan 3, 2023
Project status
Active
Venkat Vedartham GitHub avatar
GITHUB User

Venkat Vedartham ↗

Developer

Doshi App LimitedLondonOfficial website ↗
LanguagesDartKotlinSwiftHTMLObjective-C

Technical topics

Dependencies used

Dependency list 7 items

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

PaginationView

All Contributors

Actions Status pub package pub points style: effective dart License: MIT

https://raw.githubusercontent.com/excogitatr/pagination_view/master/assets/pagination_view_screen.gif

Installing

In your pubspec.yaml

dependencies:
  pagination_view: ^2.0.0-nullsafety.0
import 'package:pagination_view/pagination_view.dart';

Basic Usage

      PaginationView<User>(
        preloadedItems: <User>[
          User(faker.person.name(), faker.internet.email()),
          User(faker.person.name(), faker.internet.email()),
        ],
        itemBuilder: (BuildContext context, User user, int index) => ListTile(
          title: Text(user.name),
          subtitle: Text(user.email),
          leading: IconButton(
            icon: Icon(Icons.person),
            onPressed: () => null,
          ),
        ),
        header: Text('Header text'),
        footer: Text('Footer text'),
        paginationViewType: PaginationViewType.listView // optional
        pageFetch: pageFetch,
        onError: (dynamic error) => Center(
          child: Text('Some error occured'),
        ),
        onEmpty: Center(
          child: Text('Sorry! This is empty'),
        ),
        bottomLoader: Center( // optional
          child: CircularProgressIndicator(),
        ),
        initialLoader: Center( // optional
          child: CircularProgressIndicator(),
        ),
      ),

Contributors ✨

Thanks goes to these wonderful people (emoji key):

https://avatars3.githubusercontent.com/u/6053156?v=4?s=100
Saif Allah Khaled

💻
https://avatars2.githubusercontent.com/u/45475169?v=4?s=100
jezsung

💻
https://avatars0.githubusercontent.com/u/23390884?v=4?s=100
psredzinski

💻
https://avatars.githubusercontent.com/u/19719900?v=4?s=100
Javier Torrus

💻
https://avatars.githubusercontent.com/u/456645?v=4?s=100
Jonjo McKay

💻

This project follows the all-contributors specification. Contributions of any kind welcome!