flutter_showcaseview icon indicating copy to clipboard operation
flutter_showcaseview copied to clipboard

tooltip to target padding

Open danielczykjakub opened this issue 7 months ago • 1 comments

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:

  1. _withArrowTooltipPadding = 16.0 when showArrow is true
  2. _withOutArrowToolTipPadding = 10.0 when showArrow is false.

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.

danielczykjakub avatar Jun 12 '25 12:06 danielczykjakub

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.

Sahil-Simform avatar Jun 12 '25 13:06 Sahil-Simform