TutorialCoachMark constructor

TutorialCoachMark({
  1. required List<TargetFocus> targets,
  2. Color colorShadow = Colors.black,
  3. FutureOr<void> onClickTarget(
    1. TargetFocus
    )?,
  4. FutureOr<void> onClickTargetWithTapPosition(
    1. TargetFocus,
    2. TapDownDetails
    )?,
  5. FutureOr<void> onClickOverlay(
    1. TargetFocus
    )?,
  6. dynamic onFinish()?,
  7. double paddingFocus = 10,
  8. bool onSkip()?,
  9. AlignmentGeometry alignSkip = Alignment.bottomRight,
  10. String textSkip = "SKIP",
  11. TextStyle textStyleSkip = const TextStyle(color: Colors.white),
  12. bool hideSkip = false,
  13. bool useSafeArea = true,
  14. double opacityShadow = 0.8,
  15. Duration focusAnimationDuration = const Duration(milliseconds: 600),
  16. Duration unFocusAnimationDuration = const Duration(milliseconds: 600),
  17. Duration pulseAnimationDuration = const Duration(milliseconds: 500),
  18. bool pulseEnable = true,
  19. Widget? skipWidget,
  20. bool showSkipInLastTarget = true,
  21. ImageFilter? imageFilter,
  22. 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);