chore: Adjust settings account design
This commit is contained in:
parent
eb8eea892f
commit
24a2494829
3 changed files with 11 additions and 17 deletions
|
|
@ -92,8 +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 AlertDialog(
|
return Scaffold(
|
||||||
title: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
|
|
@ -101,7 +101,7 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
||||||
),
|
),
|
||||||
title: Text(L10n.of(context).securityKey),
|
title: Text(L10n.of(context).securityKey),
|
||||||
),
|
),
|
||||||
content: Center(
|
body: Center(
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints:
|
constraints:
|
||||||
BoxConstraints(maxWidth: FluffyThemes.columnWidth * 1.5),
|
BoxConstraints(maxWidth: FluffyThemes.columnWidth * 1.5),
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ class ChatView extends StatelessWidget {
|
||||||
? controller.timeline.isRequestingHistory
|
? controller.timeline.isRequestingHistory
|
||||||
? Center(
|
? Center(
|
||||||
child: CircularProgressIndicator
|
child: CircularProgressIndicator
|
||||||
.adaptive(),
|
.adaptive(strokeWidth: 2),
|
||||||
)
|
)
|
||||||
: controller.canLoadMore
|
: controller.canLoadMore
|
||||||
? Center(
|
? Center(
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,13 @@ class SettingsAccountView extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: CircleAvatar(
|
trailing: Icon(Icons.add_box_outlined),
|
||||||
foregroundColor: Theme.of(context).primaryColor,
|
title: Text(L10n.of(context).addAccount),
|
||||||
backgroundColor: Theme.of(context).secondaryHeaderColor,
|
subtitle: Text(L10n.of(context).enableMultiAccounts),
|
||||||
child: Icon(Icons.account_box_outlined),
|
onTap: controller.addAccountAction,
|
||||||
),
|
),
|
||||||
|
Divider(height: 1),
|
||||||
|
ListTile(
|
||||||
title: Text(L10n.of(context).yourUserId),
|
title: Text(L10n.of(context).yourUserId),
|
||||||
subtitle: Text(Matrix.of(context).client.userID),
|
subtitle: Text(Matrix.of(context).client.userID),
|
||||||
trailing: Icon(Icons.copy_outlined),
|
trailing: Icon(Icons.copy_outlined),
|
||||||
|
|
@ -35,14 +37,6 @@ class SettingsAccountView extends StatelessWidget {
|
||||||
context,
|
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(
|
ListTile(
|
||||||
trailing: Icon(Icons.edit_outlined),
|
trailing: Icon(Icons.edit_outlined),
|
||||||
title: Text(L10n.of(context).editDisplayname),
|
title: Text(L10n.of(context).editDisplayname),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue