fix: column design for bootstrap
This commit is contained in:
parent
843a6af323
commit
55d44929b9
1 changed files with 136 additions and 131 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue