From e9a5cc85aec3e07b72a0b1eee81d03c0ea4454f6 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 16 Nov 2022 11:15:41 -0600 Subject: [PATCH] add delay for ui to update properly --- .../stack_backup_views/create_backup_view.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart b/lib/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart index 55fc08087..02556beb9 100644 --- a/lib/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart +++ b/lib/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart @@ -655,9 +655,12 @@ class _RestoreFromFileViewState extends State { ), ); + await Future.delayed( + const Duration(seconds: 1)); + // make sure the dialog is able to be displayed for at least 1 second final fut = Future.delayed( - const Duration(seconds: 2)); + const Duration(seconds: 1)); final DateTime now = DateTime.now(); final String fileToSave =