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
142 stars 96 forks source link

No content Padding feature #95

Closed theAkshay60 closed 4 months ago

theAkshay60 commented 8 months ago

Can't override the default content padding

bensonarafat commented 5 months ago

@theAkshay60 If you wan to apply padding to the content you just add padding to the widget. like this example below

          content: Padding(
            padding: const EdgeInsets.all(20.0),
            child: const Text(
              "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. ",
              softWrap: true,
              textAlign: TextAlign.center,
              style: TextStyle(
                color: Colors.white,
              ),
            ),
          ),
theAkshay60 commented 5 months ago

No, I know how to add the padding but there is a default content padding which I can't remove. The issue is not yet fixed

bensonarafat commented 4 months ago

thanks @theAkshay60 This is not best.. You have to add the padding from your code. The default padding is measured by your closeButtonSize and type. Closing this.