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.
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.