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

@@ -1,7 +1,7 @@
todo:
möglichkeit einfügen um nicht gesendete einträge zu senden
im englischen abändern
zurückfeld in datenansicht
save option einfügen nur zum speichern
redesign datenansicht
ausvon und ausbis fixen (falsches datum übergeben (20000-01-01))
zurückfeld in datenansicht
maybe auch vorschläge aus templates in dropdown menüs anzeigen
@@ -19,6 +19,7 @@ eintrg in db wenn http response (in sent column)
not to do:
save option einfügen nur zum speichern
maybe auch vorschläge aus templates in dropdown menüs anzeigen
fehler beim speichern anzeigen
error check wenn dateiauswahl abgebrochen wurde einfügen

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"
}
}

View File

@@ -49,3 +49,4 @@
26 mär 45 min
20 mär 1h 30 min
24 mär 5h
30 mär 1h 15 min