ModulaPagination constructor
const
ModulaPagination({
- required int currentPage,
- required int totalPages,
- required ValueChanged<
int> onPageChanged, - Key? key,
- int maxVisiblePages = 5,
- Color? activeThumbColor,
- Color? inactiveColor,
- Color? backgroundColor,
- double buttonSize = 40,
- EdgeInsetsGeometry? padding,
- bool showFirstLast = true,
- bool showPrevNext = true,
Implementation
const ModulaPagination({
required this.currentPage,
required this.totalPages,
required this.onPageChanged,
super.key,
this.maxVisiblePages = 5,
this.activeThumbColor,
this.inactiveColor,
this.backgroundColor,
this.buttonSize = 40,
this.padding,
this.showFirstLast = true,
this.showPrevNext = true,
});