SuperTooltip constructor
SuperTooltip({
- Key? tooltipContainerKey,
- required Widget content,
- required TooltipDirection popupDirection,
- OutSideTapHandler? onClose,
- double? minWidth,
- double? minHeight,
- double? maxWidth,
- double? maxHeight,
- double? top,
- double? right,
- double? bottom,
- double? left,
- double minimumOutSidePadding = 20.0,
- ShowCloseButton showCloseButton = ShowCloseButton.none,
- bool snapsFarAwayVertically = false,
- bool snapsFarAwayHorizontally = false,
- bool hasShadow = true,
- Color shadowColor = Colors.black54,
- double shadowBlurRadius = 10.0,
- double shadowSpreadRadius = 5.0,
- double borderWidth = 2.0,
- double borderRadius = 10.0,
- Color borderColor = Colors.black,
- IconData closeButtonIcon = Icons.close,
- Color closeButtonColor = Colors.black,
- double closeButtonSize = 30.0,
- double arrowLength = 20.0,
- double arrowBaseWidth = 20.0,
- double arrowTipDistance = 2.0,
- Color backgroundColor = Colors.white,
- Color outsideBackgroundColor = const Color.fromARGB(50, 255, 255, 255),
- ClipAreaShape touchThroughAreaShape = ClipAreaShape.oval,
- double touchThroughAreaCornerRadius = 5.0,
- Rect? touchThrougArea,
- bool dismissOnTapOutside = true,
- bool blockOutsidePointerEvents = true,
- bool containsBackgroundOverlay = true,
- LayerLink? targetLink,
- int animationDuration = 300,
- Offset? tooltipOffset,
- TargetMode targetMode = TargetMode.center,
Implementation
SuperTooltip({
this.tooltipContainerKey,
required this.content, // The contents of the tooltip.
required this.popupDirection,
this.onClose,
this.minWidth,
this.minHeight,
this.maxWidth,
this.maxHeight,
this.top,
this.right,
this.bottom,
this.left,
this.minimumOutSidePadding = 20.0,
this.showCloseButton = ShowCloseButton.none,
this.snapsFarAwayVertically = false,
this.snapsFarAwayHorizontally = false,
this.hasShadow = true,
this.shadowColor = Colors.black54,
this.shadowBlurRadius = 10.0,
this.shadowSpreadRadius = 5.0,
this.borderWidth = 2.0,
this.borderRadius = 10.0,
this.borderColor = Colors.black,
this.closeButtonIcon = Icons.close,
this.closeButtonColor = Colors.black,
this.closeButtonSize = 30.0,
this.arrowLength = 20.0,
this.arrowBaseWidth = 20.0,
this.arrowTipDistance = 2.0,
this.backgroundColor = Colors.white,
this.outsideBackgroundColor = const Color.fromARGB(50, 255, 255, 255),
this.touchThroughAreaShape = ClipAreaShape.oval,
this.touchThroughAreaCornerRadius = 5.0,
this.touchThrougArea,
this.dismissOnTapOutside = true,
this.blockOutsidePointerEvents = true,
this.containsBackgroundOverlay = true,
this.targetLink,
this.animationDuration = 300,
this.tooltipOffset,
this.targetMode = TargetMode.center,
}) : assert((maxWidth ?? double.infinity) >= (minWidth ?? 0.0)),
assert((maxHeight ?? double.infinity) >= (minHeight ?? 0.0));