IntroScreens constructor
const
IntroScreens({
- required List<
IntroScreen> slides, - Color containerBg = Colors.white,
- required Function onDone,
- IndicatorType indicatorType = IndicatorType.CIRCLE,
- String appTitle = '',
- ScrollPhysics physics = const BouncingScrollPhysics(),
- Function? onSkip,
- Widget? nextWidget,
- Widget? doneWidget,
- Color activeDotColor = Colors.white,
- Color? inactiveDotColor,
- String skipText = 'skip',
- double viewPortFraction = 1.0,
- Color textColor = Colors.white,
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);