Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraints do not work as expected #130

Open
tivorreda64 opened this issue Feb 18, 2025 · 0 comments
Open

Constraints do not work as expected #130

tivorreda64 opened this issue Feb 18, 2025 · 0 comments

Comments

@tivorreda64
Copy link

Describe the bug
Passing a BoxConstraints to the SuperTooltip widget don't actually limit the tooltip size.

To Reproduce
Steps to reproduce the behavior:

  1. On example, build it for a device with large horizontal screen (desktop, tablet or landscape smartphone)
  2. The tooltip occupies all the horizontal screen space, despite the constraints being:
          constraints: const BoxConstraints(
            minHeight: 20.0,
            maxHeight: 100,
            minWidth: 20.0,
            maxWidth: 100,
          ),

Expected behavior
The bubble size should respect those constraints.

Screenshots
Image

Smartphone (please complete the following information):

  • Device: iPad 9
  • OS: 16.7

Additional context
Reading the code i've found that the constraints are only passed to TooltipPositionDelegate here, but it does not seem to be used there.

I've tried to limit the size of the content by passing the constraints to the Container but the bubble got positioned at a wrong screen position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant