fix(ui): Add loading animation for backups screen

Closes #309
This commit is contained in:
Inex Code 2023-08-14 05:54:11 +03:00
parent 4170224119
commit 7e1620be3c

View file

@ -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 {