fix: Bootstrap in columnview

This commit is contained in:
Christian Pauly 2021-03-06 10:03:01 +01:00
commit 86684d9386
2 changed files with 15 additions and 10 deletions

View file

@ -397,7 +397,9 @@ class _SettingsState extends State<Settings> {
style: TextStyle(color: Colors.red),
),
onPressed: () async {
await BootstrapDialog().show(context);
await BootstrapDialog(
client: Matrix.of(context).client,
).show(context);
AdaptivePageLayout.of(context).popUntilIsFirst();
},
);
@ -579,11 +581,16 @@ class _SettingsState extends State<Settings> {
cancelLabel: L10n.of(context).cancel,
useRootNavigator: false,
)) {
await BootstrapDialog(wipe: true).show(context);
await BootstrapDialog(
client: Matrix.of(context).client,
wipe: true,
).show(context);
}
return;
}
await BootstrapDialog().show(context);
await BootstrapDialog(
client: Matrix.of(context).client,
).show(context);
},
),
},