material_pagination
1.0.3, released 2 years ago by shyamjith.in
A customizable pagination widget with numbered page buttons and navigation arrows.
WASM-ready
What it does
MaterialPagination provides a flexible pagination control widget for Flutter applications. It supports numbered page buttons, next and previous arrows, visible page range configuration, and customizable colors, fonts, and sizes.
AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to add a page navigation bar to your list or grid views.
- You want customizable pagination buttons with active and inactive styling.
Skip it when
- You need infinite scrolling or lazy loading instead of page-based navigation.
- You require complex state management solutions built directly into the widget.
Strengths
- Highly customizable button size, style, colors, and border radius.
- Supports configurable visible page counts and navigation arrows.
Weaknesses
- Limited to standard page number pagination controls.
- Does not manage data fetching or list loading out of the box.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
MaterialPagination(
currentPage: 1,
totalPages: 10,
onPageChanged: (page) {
print('Page $page selected');
},
visiblePageCount: 5,
activeColor: Colors.blue,
inactiveColor: Colors.grey,
)Alternatives
Packages that do the same job and could replace material_pagination.
- dots_indicator
Choose dots_indicator if you are building a page view indicator rather than a numbered pagination bar.
81Compare
Works with
Packages commonly used together with material_pagination: ones it builds on, ones built on it, and its own family.