added just save function to save options dialog. also time

This commit is contained in:
nico
2024-04-30 19:33:08 +02:00
parent 091e13ac05
commit 647532107b
5 changed files with 20 additions and 3 deletions

View File

@@ -272,6 +272,15 @@ class _AddCamMainState extends State<AddCamMain> {
// ignore: use_build_context_synchronously
},
child: Text(AppLocalizations.of(context)!.saveasfile)),
TextButton(
onPressed: () {
saveData();
Navigator.pushNamedAndRemoveUntil(
// ignore: use_build_context_synchronously
context,
'/home',
(route) => false);
}, child: Text(AppLocalizations.of(context)!.justsave)),
TextButton(
onPressed: () {
Navigator.pop(dialogContext);

View File

@@ -90,5 +90,6 @@
"placedata": "Standortdaten",
"sent": "Gesendet",
"savefilefailed": "Fehler. Bitte nochmal versuchen",
"justplace": "Standort"
"justplace": "Standort",
"justsave": "Nur speichern"
}

View File

@@ -437,6 +437,11 @@
"justplace": "Place",
"@justplace": {
"description": "just the word place"
},
"justsave": "Just save",
"@justsave": {
"description": "Just save in the database save options dialog"
}
}