Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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