OnboardingPage constructor

OnboardingPage({
  1. Widget? image,
  2. required String title,
  3. required String description,
  4. Color backgroundColor = Colors.white,
  5. TextStyle? titleStyle,
  6. TextStyle? descriptionStyle,
  7. EdgeInsets contentPadding = const EdgeInsets.all(20.0),
  8. Widget? footer,
  9. BoxDecoration? imageBoxDecoration,
  10. double? imageHeight,
  11. double? imageWidth,
  12. AlignmentGeometry imageAlignment = Alignment.center,
})

Implementation

OnboardingPage({
  this.image,
  required this.title,
  required this.description,
  this.backgroundColor = Colors.white,
  this.titleStyle,
  this.descriptionStyle,
  this.contentPadding = const EdgeInsets.all(20.0),
  this.footer,
  this.imageBoxDecoration,
  this.imageHeight,
  this.imageWidth,
  this.imageAlignment = Alignment.center,
});