IntroViewsFlutter constructor

const IntroViewsFlutter(
  1. List<PageViewModel> pages, {
  2. Key? key,
  3. VoidCallback? onTapDoneButton,
  4. bool showSkipButton = true,
  5. TextStyle? pageButtonTextStyles,
  6. VoidCallback? onTapBackButton,
  7. bool showNextButton = false,
  8. bool showBackButton = false,
  9. double pageButtonTextSize = 18.0,
  10. String? pageButtonFontFamily,
  11. VoidCallback? onTapSkipButton,
  12. VoidCallback? onTapNextButton,
  13. Color pageButtonsColor = const Color(0x88FFFFFF),
  14. Widget doneText = const Text('DONE'),
  15. Widget nextText = const Text('NEXT'),
  16. Widget skipText = const Text('SKIP'),
  17. Widget backText = const Text('BACK'),
  18. bool doneButtonPersist = false,
  19. MainAxisAlignment columnMainAxisAlignment = MainAxisAlignment.spaceAround,
  20. double fullTransition = FULL_TRANSITION_PX,
  21. 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);