I’m creating series of modal bottom sheet in my app. When I go to A modal bottom sheet to B modal bottom sheet then A modal bottom sheet should be closed, I’m not getting how to achieve this, when I use navigator.pop
, then it’s navigating to A bottom sheet.
2
Answers
Before you go to B bottom sheet, you should call Navigator.pop
Example:
You can simply return the status from sheet A while closing. Based on that open sheet B.
Example: