FlutterOnBoarding constructor
FlutterOnBoarding({
- Key? key,
- required List<
IntroModel> pages, - Axis scrollDirection = Axis.vertical,
- ScrollPhysics? physics = const BouncingScrollPhysics(),
- required VoidCallback onDone,
- ShapeBorder? activeIndicatorShape,
- ShapeBorder? inactiveIndicatorShape,
- Size? activeIndicatorSize,
- Size? inactiveIndicatorSize,
- PageController? pageController,
- String? skipButtonText,
- String? nextButtonText,
- String? doneButtonText,
- Widget? indicator,
- Color? indicatorActiveColor,
- Color? indicatorInactiveColor,
- Color? skipButtonColor,
- Color? nextButtonColor,
- Widget? loadingWidget,
- 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.');