A simple to use pagination component for flutter
ModestPagination
This is a simple to use pagination component (that most suites my needs and may fit into your needs too)
Usage
Add dependency
dependencies:
modest_pagination: <version>
Or
flutter pub add modest_pagination
Import package
import 'package:modest_pagination/modest_pagination.dart';
Usage
ModestPagination(
items: countries,
itemsPerPage: 8,
pagesPerSheet: 6,
activeTextColor: Colors.white,
inactiveTextColor: Colors.white70,
pagesControllerIconsColor: Colors.white,
sheetsControllerIconsColor: Colors.white,
useListView: true,
childWidget: (T element) {
return Container();
},
)
Check example for more details
Screenshot
GridView | ListView |