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

Positioning of tooltip over the screen #174

Open
Ahmed-elshorbagy opened this issue Nov 26, 2021 · 10 comments
Open

Positioning of tooltip over the screen #174

Ahmed-elshorbagy opened this issue Nov 26, 2021 · 10 comments
Labels
enhancement New feature or request

Comments

@Ahmed-elshorbagy
Copy link

when using show case with large widgets it is not show on the screen
why can't be used with Alignment to position it correctly over screen by using (0,0) for top left and (1,1) for bottom right
thanks in advance

@vatsaltanna
Copy link
Collaborator

Can you please elaborate with more details?

@Ahmed-elshorbagy
Copy link
Author

Ahmed-elshorbagy commented Nov 30, 2021

if we wrap large widget with show case its tooltip may be out of the screen so why can't we position it over the widget itself and if we want top position it precisely we can by using Alignment or positioned widget
thanks in advance @vatsaltanna
showcase
Screenshot_1638284348

@vatsaltanna
Copy link
Collaborator

I got your point but it seems that there is no proper use case of this functionality as there are very rare chances where the widget will be near to full screen and it needs to be highlighted. it will be very much helpful if you can share the use case currently you are having.

@proninyaroslav
Copy link

proninyaroslav commented Dec 6, 2021

I faced a similar problem. I just wrapped a large widget, which is located in the center (here is fullscreen mode). The tooltip just went off the screen and isn't readable.

Screenshot_1638809598

@proninyaroslav
Copy link

proninyaroslav commented Dec 6, 2021

As a workaround, I use Stack and SizedBox inside, which I can put in a convenient place. I wrap SizedBox in Showcase and show it.

@Ahmed-elshorbagy
Copy link
Author

I used a similar workaround also with stack i used an empty container and positioned it at the desired position and made the color of showcase background as transparent but i think this is not a good approach

@vatsaltanna vatsaltanna added the enhancement New feature or request label Feb 22, 2022
@abhu66
Copy link

abhu66 commented Jul 4, 2022

Screen Shot 2022-07-04 at 12 38 38

I solved this problem by reducing the height of the screen in ShowCase.withWidget( ... height:MediaQuery.of(context).size.hight - 400 or any; )

@rmahmadkhan
Copy link

rmahmadkhan commented Dec 2, 2022

@abhu66 this design is dope 🔥
for inspiration, can you please share the code behind custom widget and how you positioned it above the target widget?

@kaseyrossanderson
Copy link

@vatsaltanna In web we have a side navigation which I want to alert users to and it takes up the full height of the screen at all times regardless of screen size. The tooltip is positionable at either the top or the bottom. It would be nice if you could also choose from the left or the right.. so that in cases like this we can do to the size.

There are several other places in my app that I would use the side instead of on top or bottom and not just when something is taking up the full screen height.

@abhu66
Copy link

abhu66 commented Jun 7, 2023

@abhu66 this design is dope 🔥 for inspiration, can you please share the code behind custom widget and how you positioned it above the target widget?

Sure,

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

No branches or pull requests

6 participants