Skip to content

How to dismiss the sheet manually if there is navigation inside?  #49

Description

@davis33321

Understand that normally we use Navigator.of(context).pop(); to dismiss the modal sheet.

However in my case, there is navigation inside the modal sheet. So, using Navigator.of(context).pop(); will only return to the previous page of the sheet.

I tried to google and use methods such as Navigator.of(context).popUntil((route) => route.isFirst); but still fail.

Anyone can shed some light on this? Many thanks.

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