OnBoard constructor

const OnBoard({
  1. Key? key,
  2. required List<OnBoardModel> onBoardData,
  3. VoidCallback? onSkip,
  4. VoidCallback? onDone,
  5. required PageController pageController,
  6. TextStyle? titleStyles,
  7. TextStyle? descriptionStyles,
  8. double? imageWidth,
  9. double? imageHeight,
  10. Widget? skipButton,
  11. Widget? nextButton,
  12. Duration duration = const Duration(milliseconds: 250),
  13. Curve curve = Curves.easeInOut,
  14. 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,
  this.onSkip,
  this.onDone,
  required this.pageController,
  this.titleStyles,
  this.descriptionStyles,
  this.imageWidth,
  this.imageHeight,
  this.skipButton,
  this.nextButton,
  this.duration = const Duration(milliseconds: 250),
  this.curve = Curves.easeInOut,
  this.pageIndicatorStyle = const PageIndicatorStyle(
      width: 150,
      activeColor: Colors.blue,
      inactiveColor: Colors.blueAccent,
      activeSize: Size(12, 12),
      inactiveSize: Size(8, 8)),
}) : super(key: key);