PersistentBottomNavBar
PersistentBottomNavBar copied to clipboard
How to pop PersistentTabBarView/BottomNavBar
How to pop the PersistentTabBarView page so that PersistentBottomNavBar disappears
I need to do this as well did @aifrosals did you figure it out?
Using this set withNavBar to false can work
pushNewScreen( context, screen: MainScreen(), withNavBar: true, // OPTIONAL VALUE. True by default. pageTransitionAnimation: PageTransitionAnimation.cupertino, );
This works for most scenarios, but not when you want to pop the nav bar and display a new screen instead, so when back button is clicked it closes the app, I found a work around where I restart the whole app on logout, and I open the screen I wanted based on boolean value.
@mahdi-ko hey did you find any solutions for it? I am also facing the same issue.
@mahdi-ko hey did you find any solutions for it? I am also facing the same issue.
yes I did, what you can do is to render the screen that contains the presistant bottom navigation bar based on boolean value, like this example:
isAuth ? BottomNavigation() : GettingStarted();