On using onWillPop the flutter app bottomScreen closes for two conditions.
- On tapping outside bottom sheet.
- On pressing mobile back button.
How to make first condition disable i.e. bottom sheet should only close on clicking mobile back button.
CodePudding user response:
Use isDismissible
property of showModalBottomSheet. It works only for outside tap.
showModalBottomSheet(
isDismissible: false,
////other
)