createTutorialOverlayIfNotExists function
void
createTutorialOverlayIfNotExists({
- required String tagName,
- required BuildContext context,
- bool enableHolesAnimation = true,
- bool enableAnimationRepeat = true,
- double defaultPadding = 4,
- List<
WidgetData> widgetsData = const [], - Function? onTap,
- Color? bgColor,
- Widget? description,
- int highlightCount = 3,
- int animationMilliseconds = 150,
- int animationRepeatDelayMilliseconds = 3000,
- bool isOverlayBgTransparent = false,
Implementation
void createTutorialOverlayIfNotExists({
required String tagName,
required BuildContext context,
bool enableHolesAnimation = true,
bool enableAnimationRepeat = true,
double defaultPadding = 4,
List<WidgetData> widgetsData = const [],
Function? onTap,
Color? bgColor,
Widget? description,
int highlightCount = 3,
int animationMilliseconds = 150,
int animationRepeatDelayMilliseconds = 3000,
bool isOverlayBgTransparent = false,
}) {
if (!_overlays.containsKey(tagName)) {
createTutorialOverlay(
context: context,
tagName: tagName,
enableHolesAnimation: enableHolesAnimation,
enableAnimationRepeat: enableAnimationRepeat,
defaultPadding: defaultPadding,
widgetsData: widgetsData,
onTap: onTap,
bgColor: bgColor,
description: description,
highlightCount: highlightCount,
animationMilliseconds: animationMilliseconds,
animationRepeatDelayMilliseconds: animationRepeatDelayMilliseconds,
isOverlayBgTransparent: isOverlayBgTransparent,
);
}
}