Showcase.withWidget constructor
const
Showcase.withWidget({
- required GlobalKey<
State< key,StatefulWidget> > - required Widget child,
- required Widget? container,
- required double? height,
- required double? width,
- String? title,
- String? description,
- ShapeBorder? shapeBorder,
- Color overlayColor = Colors.black45,
- BorderRadius? radius,
- double overlayOpacity = 0.75,
- TextStyle? titleTextStyle,
- TextStyle? descTextStyle,
- Color showcaseBackgroundColor = Colors.white,
- Color textColor = Colors.black,
- Widget scrollLoadingWidget = const CircularProgressIndicator(valueColor: AlwaysStoppedAnimation(Colors.white)),
- VoidCallback? onTargetClick,
- bool? disposeOnTap,
- Duration animationDuration = const Duration(milliseconds: 2000),
- bool? disableAnimation,
- EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 8),
- EdgeInsets overlayPadding = EdgeInsets.zero,
- double? blurValue,
- VoidCallback? onTargetLongPress,
- VoidCallback? onTargetDoubleTap,
- BorderRadius? tipBorderRadius,
Implementation
const Showcase.withWidget({
required this.key,
required this.child,
required this.container,
required this.height,
required this.width,
this.title,
this.description,
this.shapeBorder,
this.overlayColor = Colors.black45,
this.radius,
this.overlayOpacity = 0.75,
this.titleTextStyle,
this.descTextStyle,
this.showcaseBackgroundColor = Colors.white,
this.textColor = Colors.black,
this.scrollLoadingWidget = const CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation(Colors.white)),
this.onTargetClick,
this.disposeOnTap,
this.animationDuration = const Duration(milliseconds: 2000),
this.disableAnimation,
this.contentPadding = const EdgeInsets.symmetric(vertical: 8),
this.overlayPadding = EdgeInsets.zero,
this.blurValue,
this.onTargetLongPress,
this.onTargetDoubleTap,
this.tipBorderRadius,
}) : showArrow = false,
onToolTipClick = null,
assert(overlayOpacity >= 0.0 && overlayOpacity <= 1.0,
"overlay opacity must be between 0 and 1.");