FTooltip constructor
const
FTooltip({
- required Widget tipBuilder(
- BuildContext context,
- FTooltipController controller
- FTooltipControl control = const .managed(),
- FTooltipStyleDelta style = const .context(),
- AlignmentGeometry tipAnchor = .bottomCenter,
- AlignmentGeometry childAnchor = .topCenter,
- FPortalSpacing spacing = const .spacing(4),
- FPortalOverflow overflow = .flip,
- bool? hover,
- Duration? hoverEnterDuration,
- Duration? hoverExitDuration,
- bool? longPress,
- Duration? longPressExitDuration,
- ValueWidgetBuilder<
FTooltipController> builder = _builder, - Widget? child,
- Key? key,
Implementation
const FTooltip({
required this.tipBuilder,
this.control = const .managed(),
this.style = const .context(),
this.tipAnchor = .bottomCenter,
this.childAnchor = .topCenter,
this.spacing = const .spacing(4),
this.overflow = .flip,
this.hover,
this.hoverEnterDuration,
this.hoverExitDuration,
this.longPress,
this.longPressExitDuration,
this.builder = _builder,
this.child,
super.key,
}) : assert(builder != _builder || child != null, 'Either builder or child must be provided.');