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