CustomSlider constructor
CustomSlider({
- required List<
Widget> pages, - Color paginationDotBackgroundColor = Colors.transparent,
- Color paginationDotCurrentBackgroundColor = Colors.white,
- Color paginationDotBorderColor = Colors.white,
- Color paginationDotCurrentBorderColor = Colors.white,
- double paginationDotCurrentBorderWidth = 1.0,
- double paginationDotBorderWidth = 1.0,
- Color nextButtonBackgroundColor = Colors.blueAccent,
- double paginationDotWidth = 10.0,
- Widget? nextButton,
- String nextButtonText = 'Next',
- bool hideNextButtonOnFinalPage = true,
- bool hideNextButton = false,
- Function? nextButtonClicked,
- Function? pageChanged,
Implementation
CustomSlider({
required this.pages,
this.paginationDotBackgroundColor = Colors.transparent,
this.paginationDotCurrentBackgroundColor = Colors.white,
this.paginationDotBorderColor = Colors.white,
this.paginationDotCurrentBorderColor = Colors.white,
this.paginationDotCurrentBorderWidth = 1.0,
this.paginationDotBorderWidth = 1.0,
this.nextButtonBackgroundColor = Colors.blueAccent,
this.paginationDotWidth = 10.0,
this.nextButton,
this.nextButtonText = 'Next',
this.hideNextButtonOnFinalPage = true,
this.hideNextButton = false,
this.nextButtonClicked,
this.pageChanged,
}) {}