IntroSlider constructor
const
IntroSlider({
- Key? key,
- List<
ContentConfig> ? listContentConfig, - Color? backgroundColorAllTabs,
- List<
Widget> ? listCustomTabs, - void onTabChangeCompleted(
- int index
- void refFuncGoToTab(
- Function function
- Widget? renderSkipBtn,
- ButtonStyle? skipButtonStyle,
- void onSkipPress()?,
- bool? isShowSkipBtn,
- Key? skipButtonKey,
- Widget? renderPrevBtn,
- ButtonStyle? prevButtonStyle,
- bool? isShowPrevBtn,
- Key? prevButtonKey,
- Widget? renderDoneBtn,
- void onDonePress()?,
- ButtonStyle? doneButtonStyle,
- bool? isShowDoneBtn,
- Key? doneButtonKey,
- Widget? renderNextBtn,
- ButtonStyle? nextButtonStyle,
- bool? isShowNextBtn,
- dynamic onNextPress()?,
- Key? nextButtonKey,
- IndicatorConfig? indicatorConfig,
- bool? isScrollable,
- bool? isAutoScroll,
- bool? isLoopAutoScroll,
- bool? isPauseAutoPlayOnTouch,
- Duration? autoScrollInterval,
- Curve? curveScroll,
- ScrollPhysics? scrollPhysics,
Implementation
const IntroSlider({
super.key,
// Tabs
this.listContentConfig,
this.backgroundColorAllTabs,
this.listCustomTabs,
this.onTabChangeCompleted,
this.refFuncGoToTab,
// Skip
this.renderSkipBtn,
this.skipButtonStyle,
this.onSkipPress,
this.isShowSkipBtn,
this.skipButtonKey,
// Prev
this.renderPrevBtn,
this.prevButtonStyle,
this.isShowPrevBtn,
this.prevButtonKey,
// Done
this.renderDoneBtn,
this.onDonePress,
this.doneButtonStyle,
this.isShowDoneBtn,
this.doneButtonKey,
// Next
this.renderNextBtn,
this.nextButtonStyle,
this.isShowNextBtn,
this.onNextPress,
this.nextButtonKey,
// Indicator
this.indicatorConfig,
// Navigation bar
this.navigationBarConfig,
// Scroll behavior
this.isScrollable,
this.isAutoScroll,
this.isLoopAutoScroll,
this.isPauseAutoPlayOnTouch,
this.autoScrollInterval,
this.curveScroll,
this.scrollPhysics,
}) : assert(
(listContentConfig?.length ?? 0) > 0 ||
(listCustomTabs?.length ?? 0) > 0,
"You must define at least listContentConfig or listCustomTabs",
);