tooltip to target padding
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.0whenshowArrowistrue -
_withOutArrowToolTipPadding = 10.0whenshowArrowisfalse.
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.
Hi @danielczykjakub, Thank you for raising this issue. It's a thoughtful and valuable suggestion. Since you already have a clear understanding of what needs to be changed, we’d be glad to have you contribute directly. Feel free to tag me if you need any guidance or run into any issues.