IntroSlider constructor

const IntroSlider({
  1. Key? key,
  2. List<ContentConfig>? listContentConfig,
  3. Color? backgroundColorAllTabs,
  4. List<Widget>? listCustomTabs,
  5. void onTabChangeCompleted(
    1. int index
    )?,
  6. void refFuncGoToTab(
    1. Function function
    )?,
  7. Widget? renderSkipBtn,
  8. ButtonStyle? skipButtonStyle,
  9. void onSkipPress()?,
  10. bool? isShowSkipBtn,
  11. Key? skipButtonKey,
  12. Widget? renderPrevBtn,
  13. ButtonStyle? prevButtonStyle,
  14. bool? isShowPrevBtn,
  15. Key? prevButtonKey,
  16. Widget? renderDoneBtn,
  17. void onDonePress()?,
  18. ButtonStyle? doneButtonStyle,
  19. bool? isShowDoneBtn,
  20. Key? doneButtonKey,
  21. Widget? renderNextBtn,
  22. ButtonStyle? nextButtonStyle,
  23. bool? isShowNextBtn,
  24. dynamic onNextPress()?,
  25. Key? nextButtonKey,
  26. IndicatorConfig? indicatorConfig,
  27. NavigationBarConfig? navigationBarConfig,
  28. bool? isScrollable,
  29. bool? isAutoScroll,
  30. bool? isLoopAutoScroll,
  31. bool? isPauseAutoPlayOnTouch,
  32. Duration? autoScrollInterval,
  33. Curve? curveScroll,
  34. 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",
      );