OnBoard constructor
const
OnBoard({
- Key? key,
- required List<
OnBoardModel> onBoardData, - required Widget startButton,
- VoidCallback? onSkip,
- VoidCallback? onDone,
- required PageController pageController,
- TextStyle? titleStyles,
- TextStyle? descriptionStyles,
- double? imageWidth,
- double? imageHeight,
- Widget? skipButton,
- Duration duration = const Duration(milliseconds: 250),
- Curve curve = Curves.easeInOut,
- bool showSkip = true,
- BoxDecoration? decoration,
- 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);