OnBoard constructor

const OnBoard({
  1. Key? key,
  2. required List<OnBoardModel> onBoardData,
  3. required Widget startButton,
  4. VoidCallback? onSkip,
  5. VoidCallback? onDone,
  6. required PageController pageController,
  7. TextStyle? titleStyles,
  8. TextStyle? descriptionStyles,
  9. double? imageWidth,
  10. double? imageHeight,
  11. Widget? skipButton,
  12. Duration duration = const Duration(milliseconds: 250),
  13. Curve curve = Curves.easeInOut,
  14. bool showSkip = true,
  15. BoxDecoration? decoration,
  16. PageIndicatorStyle pageIndicatorStyle = const PageIndicatorStyle(width: 150, activeColor: Colors.blue, inactiveColor: Colors.blueAccent, activeSize: Size(12, 12), inactiveSize: Size(8, 8)),
})

Implementation

const OnBoard({
  Key? key,
  required this.onBoardData,
  required this.startButton,
  this.onSkip,
  this.onDone,
  required this.pageController,
  this.titleStyles,
  this.descriptionStyles,
  this.imageWidth,
  this.imageHeight,
  this.skipButton,
  this.duration = const Duration(milliseconds: 250),
  this.curve = Curves.easeInOut,
  this.showSkip = true,
  this.decoration,
  this.pageIndicatorStyle = const PageIndicatorStyle(
      width: 150,
      activeColor: Colors.blue,
      inactiveColor: Colors.blueAccent,
      activeSize: Size(12, 12),
      inactiveSize: Size(8, 8)),
}) : super(key: key);