TourStep constructor
const
TourStep({
- required GlobalKey<
State< key,StatefulWidget> > - required String title,
- required String description,
- Color backgroundColor = Colors.white,
- Duration duration = const Duration(seconds: 4),
- String? buttonLabel,
- bool isLast = false,
- StepAnimation animation = StepAnimation.fadeSlideUp,
- HighlightShape highlightShape = HighlightShape.rounded,
- bool showPulse = false,
- Widget? customContent,
- bool showProgress = true,
- ProgressIndicatorStyle progressStyle = ProgressIndicatorStyle.dots,
- bool showPreviousButton = true,
- bool showSkipButton = true,
- double spotlightPadding = 8.0,
- double spotlightBorderRadius = 12.0,
- bool allowTargetTap = false,
- TooltipPosition preferredPosition = TooltipPosition.auto,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- IconData? icon,
- Color? iconColor,
- 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,
});