Skip to main content
Rollback to Revision 1
Source Link
Rémi Rousselet
  • 279.9k
  • 89
  • 559
  • 456

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false, // prevent click outside
  builder: WillPopScope( // prevent android back button
          onWillPop: () async => false,
          child: ...)
)

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false, // prevent click outside
  builder: WillPopScope( // prevent android back button
          onWillPop: () async => false,
          child: ...)
)

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false,
  builder: ...
)
add addition step for android
Source Link
thanhbinh84
  • 18.5k
  • 7
  • 67
  • 76

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false, // prevent click outside
  builder: WillPopScope( // prevent android back button
          onWillPop: () async => false,
          child: ...)
)

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false,
  builder: ...
)

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false, // prevent click outside
  builder: WillPopScope( // prevent android back button
          onWillPop: () async => false,
          child: ...)
)
Source Link
Rémi Rousselet
  • 279.9k
  • 89
  • 559
  • 456

There's a property called barrierDismissible that you can pass to showDialog ; which makes dialogs dismissible or not on external click

showDialog(
  barrierDismissible: false,
  builder: ...
)