TourStep constructor

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

Implementation

const TourStep({
  required this.key,
  required this.title,
  required this.description,
  this.backgroundColor = Colors.white,
  this.duration = const Duration(seconds: 4),
  this.buttonLabel,
  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,
});