TutorialCoachMark constructor
TutorialCoachMark(
- BuildContext _context, {
- required List<
TargetFocus> targets, - Color colorShadow = Colors.black,
- dynamic onClickTarget()?,
- dynamic onClickOverlay()?,
- dynamic onFinish()?,
- double paddingFocus = 10,
- dynamic onSkip()?,
- AlignmentGeometry alignSkip = Alignment.bottomRight,
- String textSkip = "SKIP",
- TextStyle textStyleSkip = const TextStyle(color: Colors.white),
- bool hideSkip = false,
- double opacityShadow = 0.8,
- Duration focusAnimationDuration = const Duration(milliseconds: 600),
- Duration pulseAnimationDuration = const Duration(milliseconds: 500),
- Widget? skipWidget,
Implementation
TutorialCoachMark(this._context,
{required this.targets,
this.colorShadow = Colors.black,
this.onClickTarget,
this.onClickOverlay,
this.onFinish,
this.paddingFocus = 10,
this.onSkip,
this.alignSkip = Alignment.bottomRight,
this.textSkip = "SKIP",
this.textStyleSkip = const TextStyle(color: Colors.white),
this.hideSkip = false,
this.opacityShadow = 0.8,
this.focusAnimationDuration = const Duration(milliseconds: 600),
this.pulseAnimationDuration = const Duration(milliseconds: 500),
this.skipWidget})
: assert(opacityShadow >= 0 && opacityShadow <= 1);