I'm using showModalBottomSheet
to show a modal material design bottom sheet.
showModalBottomSheet<void>(
context: context,
builder: (BuildContext context) {
...
I'd like this bottom sheet to automatically close (pop?) when Flutter Android app is paused (for example the user is tapping the home button).
How can I do this?