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

Notification is only partially shown for nested navigators #29

Open
gnomezgrave opened this issue Oct 15, 2023 · 0 comments
Open

Notification is only partially shown for nested navigators #29

gnomezgrave opened this issue Oct 15, 2023 · 0 comments

Comments

@gnomezgrave
Copy link

gnomezgrave commented Oct 15, 2023

I'm using this library, which works well for most cases. Everything works as expected if the show() is called inside the root navigator.
However, if the show() is triggered inside a nested navigator, the notification is only partially shown (see the attachment).

Simulator Screenshot - iPhone 14 Pro - 2023-10-15 at 20 01 46

What do I mean by "nested navigator"?
I have a window which has a bottom navigation bar which has a set of navigators (and keys). Some UIs are only pushed to these navigators. When the show() is called from a UI that is part of a nested navigator, the notification isn't shown properly.

Any idea how to get this fixed?

EDIT:
I was able to fix this using the global navigator key and passing its context to the show() function.
Not sure if this is the best way to do this. Regardless, I think it's worth mentioning in the docs.

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