-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Bug]: Can't pushScreen with navBar before pushScreen without navbar #167
Comments
Yeah that does not work, sorry. As soon as you push "without" the navbar, the pushed route will sit in the root navigator on top of everything else (including the navbar). Of course, other routes can be pushed on top of that, but in order to reveal the navbar (i.e. the "home" location of your app), all other routes have to be closed before. |
how i can do that ? you can give me a code for example plz |
You could try Navigator.of(context, rootNavigator: true).popUntil((route) => route.isFirst);
Am 10. Juni 2024, 00:40 +0200 schrieb v6nom ***@***.***>:
… how i can do that ? you can give me a code for example plz
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
this code for reshow the nav bar ? |
You can use this to pop all screens that cover the navbar (if there is no screen prior to |
Version
5.2.3
Flutter Doctor Output
What platforms are you seeing the problem on?
iOS
What happened?
Hello, i have a home page, when i click on a button this redirect me to a other page who named description, i use pushScreen whithout nav bar and this work. When im on the description page i need to redirect to other page but with nav bar
When i redirect the nav bar is not showed but it had to show.
Steps to reproduce
Code to reproduce the problem
Relevant log output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: