Showcase.withWidget constructor
const
Showcase.withWidget({
- required GlobalKey<
State< key,StatefulWidget> > - required Widget child,
- required Widget? container,
- required double? height,
- required double? width,
- ShapeBorder targetShapeBorder = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8))),
- Color overlayColor = Colors.black45,
- BorderRadius? targetBorderRadius,
- double overlayOpacity = 0.75,
- Widget scrollLoadingWidget = const CircularProgressIndicator(valueColor: AlwaysStoppedAnimation(Colors.white)),
- VoidCallback? onTargetClick,
- bool? disposeOnTap,
- Duration movingAnimationDuration = const Duration(milliseconds: 2000),
- bool? disableMovingAnimation,
- EdgeInsets targetPadding = EdgeInsets.zero,
- double? blurValue,
- VoidCallback? onTargetLongPress,
- VoidCallback? onTargetDoubleTap,
- bool disableDefaultTargetGestures = false,
- TooltipPosition? tooltipPosition,
Implementation
const Showcase.withWidget({
required this.key,
required this.child,
required this.container,
required this.height,
required this.width,
this.targetShapeBorder = const RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(8),
),
),
this.overlayColor = Colors.black45,
this.targetBorderRadius,
this.overlayOpacity = 0.75,
this.scrollLoadingWidget = const CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation(Colors.white)),
this.onTargetClick,
this.disposeOnTap,
this.movingAnimationDuration = const Duration(milliseconds: 2000),
this.disableMovingAnimation,
this.targetPadding = EdgeInsets.zero,
this.blurValue,
this.onTargetLongPress,
this.onTargetDoubleTap,
this.disableDefaultTargetGestures = false,
this.tooltipPosition,
}) : showArrow = false,
onToolTipClick = null,
scaleAnimationDuration = const Duration(milliseconds: 300),
scaleAnimationCurve = Curves.decelerate,
scaleAnimationAlignment = null,
disableScaleAnimation = null,
title = null,
description = null,
titleAlignment = TextAlign.start,
descriptionAlignment = TextAlign.start,
titleTextStyle = null,
descTextStyle = null,
tooltipBackgroundColor = Colors.white,
textColor = Colors.black,
tooltipBorderRadius = null,
tooltipPadding = const EdgeInsets.symmetric(vertical: 8),
titlePadding = null,
descriptionPadding = null,
assert(overlayOpacity >= 0.0 && overlayOpacity <= 1.0,
"overlay opacity must be between 0 and 1.");