design: Move chat backup header to settings
This commit is contained in:
parent
dc0bd2f5b2
commit
b742fb9bda
4 changed files with 65 additions and 86 deletions
|
|
@ -39,6 +39,23 @@ class SettingsView extends StatelessWidget {
|
|||
iconColor: Theme.of(context).colorScheme.onBackground,
|
||||
child: ListView(
|
||||
children: <Widget>[
|
||||
AnimatedContainer(
|
||||
height: controller.showChatBackupBanner ? 54 : 0,
|
||||
duration: const Duration(milliseconds: 300),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
curve: Curves.bounceInOut,
|
||||
decoration: const BoxDecoration(),
|
||||
child: ListTile(
|
||||
leading: const Icon(Icons.backup_outlined),
|
||||
title: Text(L10n.of(context)!.enableAutoBackups),
|
||||
trailing: const Icon(
|
||||
Icons.warning_outlined,
|
||||
color: Colors.orange,
|
||||
),
|
||||
onTap: controller.firstRunBootstrapAction,
|
||||
),
|
||||
),
|
||||
const Divider(thickness: 1),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.format_paint_outlined),
|
||||
title: Text(L10n.of(context)!.changeTheme),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue