chore: Follow up settings page design
This commit is contained in:
parent
f20a2ea339
commit
96cacac084
1 changed files with 15 additions and 7 deletions
|
|
@ -19,6 +19,7 @@ class SettingsView extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final showChatBackupBanner = controller.showChatBackupBanner;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: CloseButton(
|
leading: CloseButton(
|
||||||
|
|
@ -132,13 +133,20 @@ class SettingsView extends StatelessWidget {
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
const Divider(thickness: 1),
|
const Divider(thickness: 1),
|
||||||
SwitchListTile.adaptive(
|
if (showChatBackupBanner == null)
|
||||||
controlAffinity: ListTileControlAffinity.trailing,
|
ListTile(
|
||||||
value: controller.showChatBackupBanner == false,
|
leading: const Icon(Icons.backup_outlined),
|
||||||
secondary: const Icon(Icons.backup_outlined),
|
title: Text(L10n.of(context)!.chatBackup),
|
||||||
title: Text(L10n.of(context)!.chatBackup),
|
trailing: const CircularProgressIndicator.adaptive(),
|
||||||
onChanged: controller.firstRunBootstrapAction,
|
)
|
||||||
),
|
else
|
||||||
|
SwitchListTile.adaptive(
|
||||||
|
controlAffinity: ListTileControlAffinity.trailing,
|
||||||
|
value: controller.showChatBackupBanner == false,
|
||||||
|
secondary: const Icon(Icons.backup_outlined),
|
||||||
|
title: Text(L10n.of(context)!.chatBackup),
|
||||||
|
onChanged: controller.firstRunBootstrapAction,
|
||||||
|
),
|
||||||
const Divider(thickness: 1),
|
const Divider(thickness: 1),
|
||||||
ListTile(
|
ListTile(
|
||||||
leading: const Icon(Icons.format_paint_outlined),
|
leading: const Icon(Icons.format_paint_outlined),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue