initTutorialCoachMark static method
void
initTutorialCoachMark(
- List<TargetFocus> targets
)
Implementation
static void initTutorialCoachMark(List<TargetFocus> targets) {
tutorialCoachMark = TutorialCoachMark(
targets: targets,
colorShadow: styles.shadowColor ?? Colors.red,
textSkip: styles.textSkip ?? "SKIP",
alignSkip: Alignment.bottomRight,
paddingFocus: 5,
opacityShadow: styles.shadowOpacity ?? 0.5,
imageFilter: styles.imageFilter ?? ImageFilter.blur(sigmaX: 8, sigmaY: 8),
onFinish: () {
print("finish");
},
onClickTarget: (target) {
print('onClickTarget: $target');
},
onClickTargetWithTapPosition: (target, tapDetails) {
print("target: $target");
print(
"clicked at position local: ${tapDetails.localPosition} - global: ${tapDetails.globalPosition}");
},
onClickOverlay: (target) {
print('onClickOverlay: $target');
},
onSkip: () {
print("skip");
return true;
},
);
}