design: Move chat backup header to settings

This commit is contained in:
Christian Pauly 2022-08-28 13:34:57 +02:00
commit b742fb9bda
4 changed files with 65 additions and 86 deletions

View file

@ -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),