fixed naming of empty fields

This commit is contained in:
nico
2024-05-16 21:13:12 +02:00
parent def5b35fb8
commit 6c5d046696
2 changed files with 16 additions and 16 deletions

View File

@@ -427,20 +427,20 @@ class _AddCamMainState extends State<AddCamMain> {
List<String> emptyFields = <String>[]; List<String> emptyFields = <String>[];
Map<String, TextEditingController> fields = { Map<String, TextEditingController> fields = {
'CID': cid, AppLocalizations.of(context)!.camLink: cid,
'Rudel': rudelC, AppLocalizations.of(context)!.rudel: rudelC,
'Adresse1': adresse1C, AppLocalizations.of(context)!.adresse1: adresse1C,
'BLand': bLandC, AppLocalizations.of(context)!.bland: bLandC,
'Lkr': lkrC, AppLocalizations.of(context)!.lkr: lkrC,
'BeiOrt': beiOrtC, AppLocalizations.of(context)!.beiort: beiOrtC,
'Status': TextEditingController(text: selectedStatus), AppLocalizations.of(context)!.status: TextEditingController(text: selectedStatus),
'FFTyp': ffTypC, AppLocalizations.of(context)!.fftyp: ffTypC,
'FotoFilm': TextEditingController(text: selectedFotoFilm), "${AppLocalizations.of(context)!.foto} / ${AppLocalizations.of(context)!.filelocation}": TextEditingController(text: selectedFotoFilm),
'MEZ': TextEditingController(text: selectedMEZ), AppLocalizations.of(context)!.zeiteinstellung: TextEditingController(text: selectedMEZ),
'Platzung': TextEditingController(text: selectedPlatzung), AppLocalizations.of(context)!.platzung: TextEditingController(text: selectedPlatzung),
'KTage1': kTage1C, AppLocalizations.of(context)!.ktage1: kTage1C,
'KTage2': kTage2C, AppLocalizations.of(context)!.ktage1: kTage2C,
'Standort': standortC, AppLocalizations.of(context)!.location: standortC,
}; };
for (var entry in fields.entries) { for (var entry in fields.entries) {
@@ -867,7 +867,7 @@ class _AddCamMainState extends State<AddCamMain> {
} else { } else {
List<String> emptyFields = validateData(); List<String> emptyFields = validateData();
// ! always filled out // ! always filled out
empty = false; // empty = false;
if (widget.isSent) { if (widget.isSent) {
Navigator.pushNamedAndRemoveUntil(context, '/home', (route) => false); Navigator.pushNamedAndRemoveUntil(context, '/home', (route) => false);
} else if (empty == true) { } else if (empty == true) {

View File

@@ -59,7 +59,7 @@
"pickDate": "Aufstellung", "pickDate": "Aufstellung",
"pickTime": "Zeit auswählen", "pickTime": "Zeit auswählen",
"delAll": "Alle Standorte löschen", "delAll": "Alle Standorte löschen",
"fieldEmpty": "Folgendes Feld ist leer:", "fieldEmpty": "Folgende Felder sind leer:",
"cancel": "Abbrechen", "cancel": "Abbrechen",
"template": "Als Unvollständig speichern", "template": "Als Unvollständig speichern",
"openMap": "Karte öffnen", "openMap": "Karte öffnen",