Skip to content

tooltip to target padding #536

Open
Open
@danielczykjakub

Description

@danielczykjakub

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    New FeatureMarks an issue which requires a new feature to be implemented

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions