ModulaPagination constructor

const ModulaPagination({
  1. required int currentPage,
  2. required int totalPages,
  3. required ValueChanged<int> onPageChanged,
  4. Key? key,
  5. int maxVisiblePages = 5,
  6. Color? activeThumbColor,
  7. Color? inactiveColor,
  8. Color? backgroundColor,
  9. double buttonSize = 40,
  10. EdgeInsetsGeometry? padding,
  11. bool showFirstLast = true,
  12. 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,
});