TutorialCoachMark constructor
TutorialCoachMark({
- required List<
TargetFocus> targets, - Color colorShadow = Colors.black,
- FutureOr<
void> onClickTarget()?, - FutureOr<
void> onClickTargetWithTapPosition()?, - FutureOr<
void> onClickOverlay()?, - dynamic onFinish()?,
- double paddingFocus = 10,
- bool onSkip()?,
- AlignmentGeometry alignSkip = Alignment.bottomRight,
- String textSkip = "SKIP",
- TextStyle textStyleSkip = const TextStyle(color: Colors.white),
- bool hideSkip = false,
- bool useSafeArea = true,
- double opacityShadow = 0.8,
- Duration focusAnimationDuration = const Duration(milliseconds: 600),
- Duration unFocusAnimationDuration = const Duration(milliseconds: 600),
- Duration pulseAnimationDuration = const Duration(milliseconds: 500),
- bool pulseEnable = true,
- Widget? skipWidget,
- bool showSkipInLastTarget = true,
- ImageFilter? imageFilter,
- int initialFocus = 0,
Implementation
TutorialCoachMark({
required this.targets,
this.colorShadow = Colors.black,
this.onClickTarget,
this.onClickTargetWithTapPosition,
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.useSafeArea = true,
this.opacityShadow = 0.8,
this.focusAnimationDuration = const Duration(milliseconds: 600),
this.unFocusAnimationDuration = const Duration(milliseconds: 600),
this.pulseAnimationDuration = const Duration(milliseconds: 500),
this.pulseEnable = true,
this.skipWidget,
this.showSkipInLastTarget = true,
this.imageFilter,
this.initialFocus = 0,
}) : assert(opacityShadow >= 0 && opacityShadow <= 1);