mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 02:32:54 +01:00
fix: Bootstrap column design
This commit is contained in:
parent
24ceea0882
commit
dd5f9b2c42
@ -1,5 +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:fluffychat/config/themes.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';
|
||||||
@ -92,16 +92,20 @@ 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 OnePageCard(
|
return AlertDialog(
|
||||||
child: Scaffold(
|
title: AppBar(
|
||||||
appBar: AppBar(
|
centerTitle: true,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
onPressed: Navigator.of(context).pop,
|
onPressed: Navigator.of(context).pop,
|
||||||
),
|
),
|
||||||
title: Text(L10n.of(context).securityKey),
|
title: Text(L10n.of(context).securityKey),
|
||||||
),
|
),
|
||||||
body: ListView(
|
content: Center(
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints:
|
||||||
|
BoxConstraints(maxWidth: FluffyThemes.columnWidth * 1.5),
|
||||||
|
child: ListView(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
@ -129,6 +133,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
switch (bootstrap.state) {
|
switch (bootstrap.state) {
|
||||||
@ -161,16 +166,20 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
break;
|
break;
|
||||||
case BootstrapState.openExistingSsss:
|
case BootstrapState.openExistingSsss:
|
||||||
_recoveryKeyStored = true;
|
_recoveryKeyStored = true;
|
||||||
return OnePageCard(
|
return Scaffold(
|
||||||
child: Scaffold(
|
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
centerTitle: true,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
onPressed: Navigator.of(context).pop,
|
onPressed: Navigator.of(context).pop,
|
||||||
),
|
),
|
||||||
title: Text(L10n.of(context).pleaseEnterSecurityKey),
|
title: Text(L10n.of(context).pleaseEnterSecurityKey),
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: Center(
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints:
|
||||||
|
BoxConstraints(maxWidth: FluffyThemes.columnWidth * 1.5),
|
||||||
|
child: ListView(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
children: [
|
children: [
|
||||||
TextField(
|
TextField(
|
||||||
@ -267,6 +276,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
case BootstrapState.askWipeCrossSigning:
|
case BootstrapState.askWipeCrossSigning:
|
||||||
WidgetsBinding.instance.addPostFrameCallback(
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
|
Loading…
Reference in New Issue
Block a user