mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
chore: Adjust settings account design
This commit is contained in:
parent
dd5f9b2c42
commit
79766a6d69
@ -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),
|
||||
|
@ -281,7 +281,7 @@ class ChatView extends StatelessWidget {
|
||||
? controller.timeline.isRequestingHistory
|
||||
? Center(
|
||||
child: CircularProgressIndicator
|
||||
.adaptive(),
|
||||
.adaptive(strokeWidth: 2),
|
||||
)
|
||||
: controller.canLoadMore
|
||||
? Center(
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user