From 7e1620be3c87838207444b78a2c36e556b86416f Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 14 Aug 2023 05:54:11 +0300 Subject: [PATCH] fix(ui): Add loading animation for backups screen Closes #309 --- lib/ui/pages/backups/backup_details.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ui/pages/backups/backup_details.dart b/lib/ui/pages/backups/backup_details.dart index d3bc0129..aa2ba335 100644 --- a/lib/ui/pages/backups/backup_details.dart +++ b/lib/ui/pages/backups/backup_details.dart @@ -62,7 +62,14 @@ class BackupDetailsPage extends StatelessWidget { heroTitle: 'backup.card_title'.tr(), heroSubtitle: 'backup.description'.tr(), children: [ - BrandButton.rised( + if (preventActions) + const Center( + child: Padding( + padding: EdgeInsets.all(16.0), + child: CircularProgressIndicator(), + ), + ), + if (!preventActions) BrandButton.rised( onPressed: preventActions ? null : () async {