OnboardingCarousel constructor

const OnboardingCarousel({
  1. Key? key,
  2. required List<OnboardingPage> pages,
  3. required VoidCallback onComplete,
  4. Color buttonColor = Colors.blue,
  5. Color indicatorActiveColor = Colors.blue,
  6. Color indicatorInactiveColor = Colors.grey,
  7. bool isVertical = false,
  8. TextStyle? titleTextStyle,
  9. TextStyle? descriptionTextStyle,
  10. ButtonStyle? buttonStyle,
  11. Widget? skipButton,
  12. EdgeInsets contentPadding = const EdgeInsets.all(40),
  13. Curve animationCurve = Curves.easeIn,
  14. Duration animationDuration = const Duration(milliseconds: 300),
  15. bool showIndicator = true,
  16. bool enableSwipe = true,
  17. double indicatorSize = 10,
  18. String nextButtonText = 'Next',
  19. 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',
});