I am using a modalBottomSheet to store my user's settings profile. I want to perform a firebase operation on close of the bottom sheet. Is there a way to disable all modalBottomSheet gestures to force the sheet to only close on an icon onTap operation? Thanks
Asked
Active
Viewed 275 times
1 Answers
1
You can set isDismissible
and enableDrag
to false
.
showModalBottomSheet(
context: context,
isDismissible: false,
enableDrag: false,
builder: (context) => BottomSheetWidget(),
);

Jigar Patel
- 4,953
- 1
- 12
- 20
-
Fantastic Jigar. Thanks very much! – Dan_Hemingway Sep 23 '20 at 15:18