Open v6nom opened 1 month ago
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 PersistentTabView
in the navigator history. Else, you need to adjust the condition in popUntil
)
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