From 647532107bbdf41ce9c89d31f0cd7460e4242b2f Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 30 Apr 2024 19:33:08 +0200 Subject: [PATCH] added just save function to save options dialog. also time --- Todo.txt | 5 +++-- lib/addCam/add_cam_main.dart | 9 +++++++++ lib/l10n/app_de.arb | 3 ++- lib/l10n/app_en.arb | 5 +++++ time.txt | 1 + 5 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Todo.txt b/Todo.txt index 0155729..52604f1 100644 --- a/Todo.txt +++ b/Todo.txt @@ -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 diff --git a/lib/addCam/add_cam_main.dart b/lib/addCam/add_cam_main.dart index 0bb416a..b0282e2 100644 --- a/lib/addCam/add_cam_main.dart +++ b/lib/addCam/add_cam_main.dart @@ -272,6 +272,15 @@ class _AddCamMainState extends State { // 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); diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 8e2b0a1..c10904f 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -90,5 +90,6 @@ "placedata": "Standortdaten", "sent": "Gesendet", "savefilefailed": "Fehler. Bitte nochmal versuchen", - "justplace": "Standort" + "justplace": "Standort", + "justsave": "Nur speichern" } \ No newline at end of file diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 7fb6995..e117fd9 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -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" } } \ No newline at end of file diff --git a/time.txt b/time.txt index dc32808..0db6745 100644 --- a/time.txt +++ b/time.txt @@ -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