Skip to content

Commit

Permalink
Test for descargar
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Dec 18, 2023
1 parent a4002ee commit 5a399ce
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/pages/database_download/database_download_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ class DataBaseDownloadPageState extends State<DataBaseDownloadPage> {
return;
}
}

try {

Timer timer = Timer.periodic(
const Duration(seconds: 1),
(Timer timer) => setState(() {
Expand Down Expand Up @@ -291,6 +292,15 @@ class DataBaseDownloadPageState extends State<DataBaseDownloadPage> {
);
});
timer.cancel();
} catch(e1,st1){
setState(() {
downloading = false;
baseString = ('Error while descargar\n'
'E: $e1\n'
'$st1'
);
});
}

final prefs = await MultiPreferences.getInstance();
await prefs.setInt('db_exists', 1);
Expand Down

0 comments on commit 5a399ce

Please sign in to comment.