PersistentBottomNavBarV2
PersistentBottomNavBarV2 copied to clipboard
When page is pushed with navBar Navigator.popUntil((route) => route.isFirst) not going to first page
Hi
This is my situation:
MainPage(with navBar) => subPage(withNavbar) =>Screen A(without NavBar) => Screen B(without NavBar)
I am in screen B, NavBar is not present, I am using Navigator.of(context).popUntil((route) => route.isFirst); and it is navigating me to subPage, when I want to go back to MainPage.
When I push subPage without NavBar, then Navigator.of(context).popUntil((route) => route.isFirst); is navigating me directly to MainPage.
Is there something I can do with this? I tried Navigator.of(context, rootNavigator: true).popUntil((route) => route.isFirst); but it did not change anything.