Open
Description
Is your feature request related to a problem? Please describe.
Currently a distance between the tooltip and the target widget is hardcoded inside the package, with following constants:
_withArrowTooltipPadding = 16.0
whenshowArrow
istrue
_withOutArrowToolTipPadding = 10.0
whenshowArrow
isfalse
.
The code responsible for that logic is:
if (!widget.showArrow) {
paddingTop = _withOutArrowToolTipPadding;
paddingBottom = _withOutArrowToolTipPadding;
}
inside tooltip_widget.dart
, line 463-466
and then:
padding: EdgeInsets.only(
top: paddingTop,
bottom: paddingBottom,
),
inside tooltip_widget.dart
, line 692-695
Describe the solution you'd like
It would be appropriate to expose this value as a configurable parameter, so that the vertical distance between the tooltip and the target widget can be changed.