diff --git a/lib/ui/pages/backups/create_backups_modal.dart b/lib/ui/pages/backups/create_backups_modal.dart index eb201f40..b2e3e414 100644 --- a/lib/ui/pages/backups/create_backups_modal.dart +++ b/lib/ui/pages/backups/create_backups_modal.dart @@ -104,21 +104,29 @@ class _CreateBackupsModalState extends State { ...widget.services.map( (final Service service) { final bool busy = busyServices.contains(service.id); - String description; + final List descriptionWidgets = []; if (busy) { - description = 'backup.service_busy'.tr(); + descriptionWidgets.add(Text('backup.service_busy'.tr())); } else { - description = service.backupDescription; - description += '\n'; - description += 'service_page.uses'.tr( - namedArgs: { - 'usage': service.storageUsage.used.toString(), - 'volume': context - .read() - .state - .getVolume(service.storageUsage.volume ?? '') - .displayName, - }, + descriptionWidgets.add( + Text( + 'service_page.uses'.tr( + namedArgs: { + 'usage': service.storageUsage.used.toString(), + 'volume': context + .read() + .state + .getVolume(service.storageUsage.volume ?? '') + .displayName, + }, + ), + ), + ); + descriptionWidgets.add( + const SizedBox(height: 4), + ); + descriptionWidgets.add( + Text(service.backupDescription), ); } return CheckboxListTile.adaptive( @@ -140,9 +148,7 @@ class _CreateBackupsModalState extends State { title: Text( service.displayName, ), - subtitle: Text( - description, - ), + subtitle: Column(children: descriptionWidgets), secondary: SvgPicture.string( service.svgIcon, height: 24,