SimpleTooltip constructor
const
SimpleTooltip({
- Key? key,
- required Widget child,
- TooltipDirection tooltipDirection = TooltipDirection.up,
- required Widget content,
- required bool show,
- EdgeInsets ballonPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
- double? maxWidth,
- double? minWidth,
- double? maxHeight,
- double? minHeight,
- double? bottom,
- double? right,
- double? top,
- double? left,
- double arrowTipDistance = 6,
- double arrowLength = 20,
- double minimumOutSidePadding = 20.0,
- double arrowBaseWidth = 20.0,
- double borderRadius = 10,
- double borderWidth = 2.0,
- Color borderColor = const Color(0xFF50FFFF),
- Duration animationDuration = const Duration(milliseconds: 460),
- Color backgroundColor = const Color(0xFFFFFFFF),
- List<
BoxShadow> customShadows = const [BoxShadow(color: Color(0x45222222), blurRadius: 8, spreadRadius: 2)], - dynamic tooltipTap()?,
- bool hideOnTooltipTap = false,
- RouteObserver<
PageRoute> ? routeObserver,
Implementation
const SimpleTooltip({
Key? key,
required this.child,
this.tooltipDirection = TooltipDirection.up,
required this.content,
required this.show,
// this.onClose,
this.ballonPadding =
const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
this.maxWidth,
this.minWidth,
this.maxHeight,
this.minHeight,
this.bottom,
this.right,
this.top,
this.left,
this.arrowTipDistance = 6,
this.arrowLength = 20,
this.minimumOutSidePadding = 20.0,
this.arrowBaseWidth = 20.0,
this.borderRadius = 10,
this.borderWidth = 2.0,
this.borderColor = const Color(0xFF50FFFF),
this.animationDuration = const Duration(milliseconds: 460),
this.backgroundColor = const Color(0xFFFFFFFF),
this.customShadows = const [
BoxShadow(color: Color(0x45222222), blurRadius: 8, spreadRadius: 2),
],
this.tooltipTap,
this.hideOnTooltipTap = false,
this.routeObserver,
}) : super(key: key);