Showcase.withWidget constructor
const
Showcase.withWidget({
- required GlobalKey<
State< key,StatefulWidget> > - required double? height,
- required double? width,
- required Widget? container,
- required Widget child,
- ShapeBorder targetShapeBorder = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8))),
- Color overlayColor = Colors.black45,
- BorderRadius? targetBorderRadius,
- double overlayOpacity = 0.65,
- 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,
- VoidCallback? onBarrierClick,
Implementation
const Showcase.withWidget({
required this.key,
required this.height,
required this.width,
required this.container,
required this.child,
this.targetShapeBorder = const RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(8),
),
),
this.overlayColor = Colors.black45,
this.targetBorderRadius,
this.overlayOpacity = 0.65,
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,
this.onBarrierClick,
}) : 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,
titleTextDirection = null,
descriptionTextDirection = null,
assert(overlayOpacity >= 0.0 && overlayOpacity <= 1.0,
"overlay opacity must be between 0 and 1.");