https://github.com/iamngoni/modest-pagination
Attempt at modularizing my own pagination 😁
https://github.com/iamngoni/modest-pagination
Last synced: about 1 month ago
JSON representation
Attempt at modularizing my own pagination 😁
- Host: GitHub
- URL: https://github.com/iamngoni/modest-pagination
- Owner: iamngoni
- License: apache-2.0
- Created: 2022-06-27T09:29:18.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T20:51:26.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T11:51:08.454Z (2 months ago)
- Language: Dart
- Size: 214 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [ModestPagination](https://pub.dev/packages/modest_pagination/)
![]()
![]()
This is a simple to use pagination component (that most suites my needs and may fit into your needs too)
## Usage
### Add dependency
```yaml
dependencies:
modest_pagination:
```### Or
```shell
flutter pub add modest_pagination
```### Import package
```dart
import 'package:modest_pagination/modest_pagination.dart';
```### Usage
```dart
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
![]()
![]()