OnboardingCarousel constructor
const
OnboardingCarousel({
- Key? key,
- required List<
OnboardingPage> pages, - required VoidCallback onComplete,
- Color buttonColor = Colors.blue,
- Color indicatorActiveColor = Colors.blue,
- Color indicatorInactiveColor = Colors.grey,
- bool isVertical = false,
- TextStyle? titleTextStyle,
- TextStyle? descriptionTextStyle,
- ButtonStyle? buttonStyle,
- Widget? skipButton,
- EdgeInsets contentPadding = const EdgeInsets.all(40),
- Curve animationCurve = Curves.easeIn,
- Duration animationDuration = const Duration(milliseconds: 300),
- bool showIndicator = true,
- bool enableSwipe = true,
- double indicatorSize = 10,
- String nextButtonText = 'Next',
- String getStartedButtonText = 'Get Started',
Implementation
const OnboardingCarousel({
super.key,
required this.pages,
required this.onComplete,
this.buttonColor = Colors.blue,
this.indicatorActiveColor = Colors.blue,
this.indicatorInactiveColor = Colors.grey,
this.isVertical = false,
this.titleTextStyle,
this.descriptionTextStyle,
this.buttonStyle,
this.skipButton,
this.contentPadding = const EdgeInsets.all(40),
this.animationCurve = Curves.easeIn,
this.animationDuration = const Duration(milliseconds: 300),
this.showIndicator = true,
this.enableSwipe = true,
this.indicatorSize = 10,
this.nextButtonText = 'Next',
this.getStartedButtonText = 'Get Started',
});