IntroViewsFlutter constructor
const
IntroViewsFlutter(
- List<
PageViewModel> pages, { - Key? key,
- VoidCallback? onTapDoneButton,
- bool showSkipButton = true,
- TextStyle? pageButtonTextStyles,
- VoidCallback? onTapBackButton,
- bool showNextButton = false,
- bool showBackButton = false,
- double pageButtonTextSize = 18.0,
- String? pageButtonFontFamily,
- VoidCallback? onTapSkipButton,
- VoidCallback? onTapNextButton,
- Color pageButtonsColor = const Color(0x88FFFFFF),
- Widget doneText = const Text('DONE'),
- Widget nextText = const Text('NEXT'),
- Widget skipText = const Text('SKIP'),
- Widget backText = const Text('BACK'),
- bool doneButtonPersist = false,
- MainAxisAlignment columnMainAxisAlignment = MainAxisAlignment.spaceAround,
- double fullTransition = FULL_TRANSITION_PX,
- Color? background,
Implementation
const IntroViewsFlutter(
this.pages, {
Key? key,
this.onTapDoneButton,
this.showSkipButton = true,
this.pageButtonTextStyles,
this.onTapBackButton,
this.showNextButton = false,
this.showBackButton = false,
this.pageButtonTextSize = 18.0,
this.pageButtonFontFamily,
this.onTapSkipButton,
this.onTapNextButton,
this.pageButtonsColor = const Color(0x88FFFFFF),
this.doneText = const Text('DONE'),
this.nextText = const Text('NEXT'),
this.skipText = const Text('SKIP'),
this.backText = const Text('BACK'),
this.doneButtonPersist = false,
this.columnMainAxisAlignment = MainAxisAlignment.spaceAround,
this.fullTransition = FULL_TRANSITION_PX,
this.background,
}) : assert(
pages.length > 0,
"At least one 'PageViewModel' item of 'pages' argument is required.",
),
super(key: key);