FlutterOnBoarding constructor

FlutterOnBoarding({
  1. Key? key,
  2. required List<IntroModel> pages,
  3. Axis scrollDirection = Axis.vertical,
  4. ScrollPhysics? physics = const BouncingScrollPhysics(),
  5. required VoidCallback onDone,
  6. ShapeBorder? activeIndicatorShape,
  7. ShapeBorder? inactiveIndicatorShape,
  8. Size? activeIndicatorSize,
  9. Size? inactiveIndicatorSize,
  10. PageController? pageController,
  11. String? skipButtonText,
  12. String? nextButtonText,
  13. String? doneButtonText,
  14. Widget? indicator,
  15. Widget? navigationControl,
  16. Color? indicatorActiveColor,
  17. Color? indicatorInactiveColor,
  18. Color? skipButtonColor,
  19. Color? nextButtonColor,
  20. Widget? loadingWidget,
  21. bool shouldUseDefaultStorage = true,
})

Implementation

FlutterOnBoarding({
  super.key,
  required this.pages,
  this.scrollDirection = Axis.vertical,
  this.physics = const BouncingScrollPhysics(),
  required this.onDone,
  this.activeIndicatorShape,
  this.inactiveIndicatorShape,
  this.activeIndicatorSize,
  this.inactiveIndicatorSize,
  this.pageController,
  this.skipButtonText,
  this.nextButtonText,
  this.doneButtonText,
  this.indicator,
  this.navigationControl,
  this.indicatorActiveColor,
  this.indicatorInactiveColor,
  this.skipButtonColor,
  this.nextButtonColor,
  this.loadingWidget,
  this.shouldUseDefaultStorage = true,
}) : assert(pages.isNotEmpty, 'You must provide at least one page.');