TourStep constructor

const TourStep({
  1. GlobalKey<State<StatefulWidget>>? key,
  2. required String title,
  3. required String description,
  4. Color? backgroundColor,
  5. Duration? duration,
  6. String? buttonLabel,
  7. String? previousButtonLabel,
  8. String? skipButtonLabel,
  9. bool isLast = false,
  10. StepAnimation animation = StepAnimation.fadeSlideUp,
  11. HighlightShape highlightShape = HighlightShape.rounded,
  12. bool showPulse = false,
  13. Widget? customContent,
  14. bool showProgress = true,
  15. ProgressIndicatorStyle progressStyle = ProgressIndicatorStyle.dots,
  16. bool showPreviousButton = true,
  17. bool showSkipButton = true,
  18. double spotlightPadding = 8.0,
  19. double spotlightBorderRadius = 12.0,
  20. bool allowTargetTap = false,
  21. TooltipPosition preferredPosition = TooltipPosition.auto,
  22. TextStyle? titleStyle,
  23. TextStyle? descriptionStyle,
  24. IconData? icon,
  25. Color? iconColor,
  26. VoidCallback? onDisplay,
  27. bool showCloseButton = false,
})

Implementation

const TourStep({
  this.key,
  required this.title,
  required this.description,
  this.backgroundColor,
  this.duration,
  this.buttonLabel,
  this.previousButtonLabel,
  this.skipButtonLabel,
  this.isLast = false,
  // v2.0 defaults
  this.animation = StepAnimation.fadeSlideUp,
  this.highlightShape = HighlightShape.rounded,
  this.showPulse = false,
  this.customContent,
  this.showProgress = true,
  this.progressStyle = ProgressIndicatorStyle.dots,
  this.showPreviousButton = true,
  this.showSkipButton = true,
  this.spotlightPadding = 8.0,
  this.spotlightBorderRadius = 12.0,
  this.allowTargetTap = false,
  this.preferredPosition = TooltipPosition.auto,
  this.titleStyle,
  this.descriptionStyle,
  this.icon,
  this.iconColor,
  this.onDisplay,
  this.showCloseButton = false,
});