pagination_view 1.0.3+1 copy "pagination_view: ^1.0.3+1" to clipboard
pagination_view: ^1.0.3+1 copied to clipboard

outdated

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

PaginationView #

All Contributors

Actions Status pub package style: effective dart License: MIT

Installing #

In your pubspec.yaml

dependencies:
  pagination_view: ^1.0.3+1
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,
          ),
        ),
        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(),
        ),
      ),

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Contributors ✨ #

Thanks goes to these wonderful people (emoji key):


Saif Allah Khaled

💻

jezsung

💻

psredzinski

💻

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

161
likes
0
pub points
91%
popularity

Publisher

verified publishervedartm.com

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bloc, flutter, flutter_bloc

More

Packages that depend on pagination_view