NumberPaginationFlutter constructor
NumberPaginationFlutter({
- required dynamic onPageChanged(),
- required int pageTotal,
- int threshold = 10,
- int pageInit = 1,
- Color colorPrimary = Colors.black,
- Color colorBackGround = Colors.white,
- Widget? controlButton,
- Widget iconToFirst = const Icon(Icons.first_page),
- Widget iconPrevious = const Icon(Icons.keyboard_arrow_left),
- Widget iconNext = const Icon(Icons.keyboard_arrow_right),
- Widget iconToLast = const Icon(Icons.last_page),
- double fontSize = 15,
- String? fontFamily,
- double buttonElevation = 5,
- double buttonRadius = 10,
- double buttonSpacing = 4.0,
- double groupSpacing = 10.0,
- bool canJump = true,
Creates a NumberPaginationFlutter
Implementation
NumberPaginationFlutter({
required this.onPageChanged,
required this.pageTotal,
this.threshold = 10,
this.pageInit = 1,
this.colorPrimary = Colors.black,
this.colorBackGround = Colors.white,
this.controlButton,
this.iconToFirst = const Icon(Icons.first_page),
this.iconPrevious = const Icon(Icons.keyboard_arrow_left),
this.iconNext = const Icon(Icons.keyboard_arrow_right),
this.iconToLast = const Icon(Icons.last_page),
this.fontSize = 15,
this.fontFamily,
this.buttonElevation = 5,
this.buttonRadius = 10,
this.buttonSpacing = 4.0,
this.groupSpacing = 10.0,
this.canJump = true,
});