chore: Adjust settings account design

This commit is contained in:
Krille Fear 2021-10-14 16:57:01 +02:00
parent dd5f9b2c42
commit 79766a6d69
3 changed files with 11 additions and 17 deletions

View File

@ -92,8 +92,8 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
_recoveryKeyStored == false) {
final key = bootstrap.newSsssKey.recoveryKey;
titleText = L10n.of(context).securityKey;
return AlertDialog(
title: AppBar(
return Scaffold(
appBar: AppBar(
centerTitle: true,
leading: IconButton(
icon: Icon(Icons.close),
@ -101,7 +101,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
),
title: Text(L10n.of(context).securityKey),
),
content: Center(
body: Center(
child: ConstrainedBox(
constraints:
BoxConstraints(maxWidth: FluffyThemes.columnWidth * 1.5),

View File

@ -281,7 +281,7 @@ class ChatView extends StatelessWidget {
? controller.timeline.isRequestingHistory
? Center(
child: CircularProgressIndicator
.adaptive(),
.adaptive(strokeWidth: 2),
)
: controller.canLoadMore
? Center(

View File

@ -22,11 +22,13 @@ class SettingsAccountView extends StatelessWidget {
child: Column(
children: [
ListTile(
leading: CircleAvatar(
foregroundColor: Theme.of(context).primaryColor,
backgroundColor: Theme.of(context).secondaryHeaderColor,
child: Icon(Icons.account_box_outlined),
),
trailing: Icon(Icons.add_box_outlined),
title: Text(L10n.of(context).addAccount),
subtitle: Text(L10n.of(context).enableMultiAccounts),
onTap: controller.addAccountAction,
),
Divider(height: 1),
ListTile(
title: Text(L10n.of(context).yourUserId),
subtitle: Text(Matrix.of(context).client.userID),
trailing: Icon(Icons.copy_outlined),
@ -35,14 +37,6 @@ class SettingsAccountView extends StatelessWidget {
context,
),
),
Divider(height: 1),
ListTile(
trailing: Icon(Icons.add_box_outlined),
title: Text(L10n.of(context).addAccount),
subtitle: Text(L10n.of(context).enableMultiAccounts),
onTap: controller.addAccountAction,
),
Divider(height: 1),
ListTile(
trailing: Icon(Icons.edit_outlined),
title: Text(L10n.of(context).editDisplayname),