FlutstrapTooltip constructor
const
FlutstrapTooltip({
- Key? key,
- required String message,
- required Widget child,
- FSTooltipVariant variant = FSTooltipVariant.primary,
- FSTooltipPlacement placement = FSTooltipPlacement.top,
- Duration showDelay = const Duration(milliseconds: 100),
- Duration hideDelay = const Duration(milliseconds: 100),
- Duration animationDuration = const Duration(milliseconds: 200),
- bool showArrow = true,
- double maxWidth = 200.0,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
- TextStyle? textStyle,
- Color? backgroundColor,
- BorderRadiusGeometry? borderRadius,
- void onShowError(
- Object error
- void onHideError(
- Object error
Implementation
const FlutstrapTooltip({
super.key,
required this.message,
required this.child,
this.variant = FSTooltipVariant.primary,
this.placement = FSTooltipPlacement.top,
this.showDelay = const Duration(milliseconds: 100),
this.hideDelay = const Duration(milliseconds: 100),
this.animationDuration = const Duration(milliseconds: 200),
this.showArrow = true,
this.maxWidth = 200.0,
this.padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
this.textStyle,
this.backgroundColor,
this.borderRadius,
this.onShowError,
this.onHideError,
});