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