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

Check if widget is on view to highlight #46

Open
Erkapos opened this issue Dec 13, 2022 · 1 comment
Open

Check if widget is on view to highlight #46

Erkapos opened this issue Dec 13, 2022 · 1 comment

Comments

@Erkapos
Copy link

Erkapos commented Dec 13, 2022

Is there a way to check if the widget that you want to highlight is currently on a page (in view from user) ?

what i want to achieve is when the widget is on view from user, it will show the onboarding. But when the widget isn't on view from user, it won't show the onboarding.

since on mine, i want to highlight a widget that on outside of my screen (a widget that is on the bottom of a singlechildscrollview that is outside of my screen size) and i want to check first, if the widget is on view before showing the overlay

@talamaska
Copy link
Owner

Well, I'm not sure if this is possible with the current logic. You can get the coordinates I think using the focus node in question it gives you data just like accessing it via global key. But I have made the it to explicitly scroll to the focused item when it has focus node attached and an overlay step.

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

2 participants