Home > Mobile >  Mobile back button access through flutter
Mobile back button access through flutter

Time:09-27

On using onWillPop the flutter app bottomScreen closes for two conditions.

  1. On tapping outside bottom sheet.
  2. 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
    
    )
  • Related