PersistentBottomNavBarV2 icon indicating copy to clipboard operation
PersistentBottomNavBarV2 copied to clipboard

When page is pushed with navBar Navigator.popUntil((route) => route.isFirst) not going to first page

Open kawi15 opened this issue 1 year ago • 1 comments

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.

kawi15 avatar Dec 05 '24 13:12 kawi15