add delay for ui to update properly

This commit is contained in:
julian 2022-11-16 11:15:41 -06:00
parent 0f3a0b18a4
commit e9a5cc85ae

View file

@ -655,9 +655,12 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
),
);
await Future<void>.delayed(
const Duration(seconds: 1));
// make sure the dialog is able to be displayed for at least 1 second
final fut = Future<void>.delayed(
const Duration(seconds: 2));
const Duration(seconds: 1));
final DateTime now = DateTime.now();
final String fileToSave =