IntroScreens constructor

const IntroScreens({
  1. required List<IntroScreen> slides,
  2. double footerRadius = 12.0,
  3. List<Color> footerGradients = const [],
  4. Color containerBg = Colors.white,
  5. required Function onDone,
  6. IndicatorType indicatorType = IndicatorType.CIRCLE,
  7. String appTitle = '',
  8. ScrollPhysics physics = const BouncingScrollPhysics(),
  9. Function? onSkip,
  10. Widget? nextWidget,
  11. Widget? doneWidget,
  12. Color activeDotColor = Colors.white,
  13. Color? inactiveDotColor,
  14. String skipText = 'skip',
  15. double viewPortFraction = 1.0,
  16. Color textColor = Colors.white,
  17. EdgeInsets footerPadding = const EdgeInsets.all(24),
  18. Color footerBgColor = const Color(0xff51adf6),
})

Implementation

const IntroScreens({
  required this.slides,
  this.footerRadius = 12.0,
  this.footerGradients = const [],
  this.containerBg = Colors.white,
  required this.onDone,
  this.indicatorType = IndicatorType.CIRCLE,
  this.appTitle = '',
  this.physics = const BouncingScrollPhysics(),
  this.onSkip,
  this.nextWidget,
  this.doneWidget,
  this.activeDotColor = Colors.white,
  this.inactiveDotColor,
  this.skipText = 'skip',
  this.viewPortFraction = 1.0,
  this.textColor = Colors.white,
  this.footerPadding = const EdgeInsets.all(24),
  this.footerBgColor = const Color(0xff51adf6),
}) : assert(slides.length > 0);