bensonarafat / super_tooltip

SuperTooltip It is super flexible and allows you to display ToolTips in the overlay of the screen.
https://pub.dev/packages/super_tooltip
MIT License
141 stars 95 forks source link

Cannot modify content padding. #33

Closed igonzarec closed 1 year ago

igonzarec commented 3 years ago

Hi! Thanks for the great package! Little issue here. I am not able to see an option to modify the padding/margin around the content of the tooltip. It seems that there is something like a default padding. Maybe I am missing something. Otherwise I would recommend to add a property to control it. Thank you in advance! Screen Shot 2021-10-19 at 18 27 01

Code used:

SuperTooltip(
      popupDirection: TooltipDirection.down,
      content: Material(
          child: Text(
            "Lorem ipsum dolor sit amet, consetetur sadipscingelitr, "
                "sed diam nonumy eirmod tempor invidunt ut laboreet dolore magna aliquyam erat, "
                "sed diam voluptua. At vero eos et accusam et justoduo dolores et ea rebum. ",
            softWrap: true,
          )),
    );

Something like being able to set this value in the _BubbleShape class.

EdgeInsetsGeometry get dimensions => new EdgeInsets.all(10.0); //this value of ten

Let me see if I manage to find some time to propose a merge for this feature.

SaelRomero commented 2 years ago

x2

mduccc commented 1 year ago

@igonzarec @bensonarafat

The issue has been resolved.