barrierDismissible: true,
This commit is contained in:
Christian Pauly 2021-04-09 15:53:26 +02:00
parent 0e172c7465
commit de9e3739fe
2 changed files with 4 additions and 0 deletions

View File

@ -25,11 +25,13 @@ class BootstrapDialog extends StatefulWidget {
context: context,
builder: (context) => this,
useRootNavigator: false,
barrierDismissible: true,
)
: showDialog(
context: context,
builder: (context) => this,
useRootNavigator: false,
barrierDismissible: true,
);
@override

View File

@ -14,11 +14,13 @@ class KeyVerificationDialog extends StatefulWidget {
Future<void> show(BuildContext context) => PlatformInfos.isCupertinoStyle
? showCupertinoDialog(
context: context,
barrierDismissible: true,
builder: (context) => this,
useRootNavigator: false,
)
: showDialog(
context: context,
barrierDismissible: true,
builder: (context) => this,
useRootNavigator: false,
);