fix: column design for bootstrap
This commit is contained in:
parent
741d4ddba3
commit
eca3905e0c
|
@ -1,4 +1,5 @@
|
||||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
||||||
|
import 'package:fluffychat/widgets/layouts/one_page_card.dart';
|
||||||
import 'package:matrix/encryption.dart';
|
import 'package:matrix/encryption.dart';
|
||||||
import 'package:matrix/encryption/utils/bootstrap.dart';
|
import 'package:matrix/encryption/utils/bootstrap.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
@ -91,7 +92,8 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
||||||
_recoveryKeyStored == false) {
|
_recoveryKeyStored == false) {
|
||||||
final key = bootstrap.newSsssKey.recoveryKey;
|
final key = bootstrap.newSsssKey.recoveryKey;
|
||||||
titleText = L10n.of(context).securityKey;
|
titleText = L10n.of(context).securityKey;
|
||||||
return Scaffold(
|
return OnePageCard(
|
||||||
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
|
@ -126,6 +128,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
switch (bootstrap.state) {
|
switch (bootstrap.state) {
|
||||||
|
@ -158,7 +161,8 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
||||||
break;
|
break;
|
||||||
case BootstrapState.openExistingSsss:
|
case BootstrapState.openExistingSsss:
|
||||||
_recoveryKeyStored = true;
|
_recoveryKeyStored = true;
|
||||||
return Scaffold(
|
return OnePageCard(
|
||||||
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
|
@ -262,6 +266,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
case BootstrapState.askWipeCrossSigning:
|
case BootstrapState.askWipeCrossSigning:
|
||||||
WidgetsBinding.instance.addPostFrameCallback(
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
|
|
Loading…
Reference in New Issue