PersistentBottomNavBar icon indicating copy to clipboard operation
PersistentBottomNavBar copied to clipboard

How to pop PersistentTabBarView/BottomNavBar

Open aifrosals opened this issue 3 years ago • 5 comments

How to pop the PersistentTabBarView page so that PersistentBottomNavBar disappears

aifrosals avatar Jun 29 '21 14:06 aifrosals

I need to do this as well did @aifrosals did you figure it out?

mahdi-ko avatar Jul 07 '21 07:07 mahdi-ko

Using this set withNavBar to false can work pushNewScreen( context, screen: MainScreen(), withNavBar: true, // OPTIONAL VALUE. True by default. pageTransitionAnimation: PageTransitionAnimation.cupertino, );

aifrosals avatar Jul 12 '21 09:07 aifrosals

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 avatar Jul 12 '21 09:07 mahdi-ko

@mahdi-ko hey did you find any solutions for it? I am also facing the same issue.

tannatsri avatar Sep 24 '21 17:09 tannatsri

@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();

mahdi-ko avatar Sep 28 '21 18:09 mahdi-ko