I am displaying a BottomSheet via showModalBottomSheet() and inside several widgets with a GestureDetector. I would like to see the BottomSheet clos
showModalBottomSheet()
The fix in our code was to wrap our bottom sheet widget like this. The buttons in the bottom sheet still worked:
GestureDetector( behavior: HitTestBehavior.opaque, onTap: () => Navigator.pop(context), child: )