CustomSlider constructor

CustomSlider({
  1. required List<Widget> pages,
  2. Color paginationDotBackgroundColor = Colors.transparent,
  3. Color paginationDotCurrentBackgroundColor = Colors.white,
  4. Color paginationDotBorderColor = Colors.white,
  5. Color paginationDotCurrentBorderColor = Colors.white,
  6. double paginationDotCurrentBorderWidth = 1.0,
  7. double paginationDotBorderWidth = 1.0,
  8. Color nextButtonBackgroundColor = Colors.blueAccent,
  9. double paginationDotWidth = 10.0,
  10. Widget? nextButton,
  11. String nextButtonText = 'Next',
  12. bool hideNextButtonOnFinalPage = true,
  13. bool hideNextButton = false,
  14. Function? nextButtonClicked,
  15. 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,
}) {}