Skip to content

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

@kawi15

Description

@kawi15

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions