Showcase.withWidget constructor

const Showcase.withWidget({
  1. required GlobalKey<State<StatefulWidget>> key,
  2. required Widget child,
  3. required Widget? container,
  4. required double? height,
  5. required double? width,
  6. String? title,
  7. String? description,
  8. ShapeBorder? shapeBorder,
  9. Color overlayColor = Colors.black45,
  10. BorderRadius? radius,
  11. double overlayOpacity = 0.75,
  12. TextStyle? titleTextStyle,
  13. TextStyle? descTextStyle,
  14. Color showcaseBackgroundColor = Colors.white,
  15. Color textColor = Colors.black,
  16. Widget scrollLoadingWidget = const CircularProgressIndicator(valueColor: AlwaysStoppedAnimation(Colors.white)),
  17. VoidCallback? onTargetClick,
  18. bool? disposeOnTap,
  19. Duration animationDuration = const Duration(milliseconds: 2000),
  20. bool? disableAnimation,
  21. EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 8),
  22. EdgeInsets overlayPadding = EdgeInsets.zero,
  23. double? blurValue,
  24. VoidCallback? onTargetLongPress,
  25. VoidCallback? onTargetDoubleTap,
  26. 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.");