SimpleTooltip constructor

const SimpleTooltip({
  1. Key? key,
  2. required Widget child,
  3. TooltipDirection tooltipDirection = TooltipDirection.up,
  4. required Widget content,
  5. required bool show,
  6. EdgeInsets ballonPadding = const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
  7. double? maxWidth,
  8. double? minWidth,
  9. double? maxHeight,
  10. double? minHeight,
  11. double? bottom,
  12. double? right,
  13. double? top,
  14. double? left,
  15. double arrowTipDistance = 6,
  16. double arrowLength = 20,
  17. double minimumOutSidePadding = 20.0,
  18. double arrowBaseWidth = 20.0,
  19. double borderRadius = 10,
  20. double borderWidth = 2.0,
  21. Color borderColor = const Color(0xFF50FFFF),
  22. Duration animationDuration = const Duration(milliseconds: 460),
  23. Color backgroundColor = const Color(0xFFFFFFFF),
  24. List<BoxShadow> customShadows = const [BoxShadow(color: Color(0x45222222), blurRadius: 8, spreadRadius: 2)],
  25. dynamic tooltipTap()?,
  26. bool hideOnTooltipTap = false,
  27. 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);