-
Notifications
You must be signed in to change notification settings - Fork 56
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
Popover is pointing incorrectly #69
Comments
@prateekmedia Thank you for the report! I've never used |
Actually this is above those packages, if you see this issue it means its something wrong with how the position is getting calculated and its not something I am experienced with, that's why I attached a reference code of super_tooltip which does this perfectly. |
We can keep this issue open until we have more reports like this and someone who wants to volunteer to work on this issue. |
I've experienced similar issues and found that the popover is misplaced usually if you provide the wrong When you have a button to present the popover, it's best to capture the Here's an example how to do that:
If I don't do this the source object bounds might be calculated from the parent widget of the button or some other ancestor. Hope this helps. |
But many a time builder is required for widgets like BotToast or WindowManager or even ResponsiveFramework |
Same issue, it was pointing at the card parenting my button; I wrapped the button that launches the popover with a |
This is not an issue about which context the popover uses. This is an issue about the popover location calculation. Apparently, the calculations result in incorrect positioning when the parent is scaled, like using |
Describe the bug
Whenever I use
responsive_framework
or add packages likewindow_manager
(for Desktop to add borders in the app window) the popup arrow points incorrectly and to the wrong place (see Screenshot section and Additional context section for problem and possible solution).To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should exactly point to the widget.
Screenshots
.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
On the other hand super_tooltip works perfectly and points exactly to the widget, Here is the link where they do the computing.
https://github.com/escamoteur/super_tooltip/blob/40ca162d284a6f665880dea03ac28cea3c040966/lib/super_tooltip.dart#L236-L239
The text was updated successfully, but these errors were encountered: