FlutstrapTooltip constructor

const FlutstrapTooltip({
  1. Key? key,
  2. required String message,
  3. required Widget child,
  4. FSTooltipVariant variant = FSTooltipVariant.primary,
  5. FSTooltipPlacement placement = FSTooltipPlacement.top,
  6. Duration showDelay = const Duration(milliseconds: 100),
  7. Duration hideDelay = const Duration(milliseconds: 100),
  8. Duration animationDuration = const Duration(milliseconds: 200),
  9. bool showArrow = true,
  10. double maxWidth = 200.0,
  11. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
  12. TextStyle? textStyle,
  13. Color? backgroundColor,
  14. BorderRadiusGeometry? borderRadius,
  15. void onShowError(
    1. Object error
    )?,
  16. void onHideError(
    1. 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,
});