besprechung
This commit is contained in:
@@ -147,16 +147,19 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
||||
return currentPosition;
|
||||
});
|
||||
|
||||
|
||||
if (widget.existingData?.isNotEmpty ?? false) {
|
||||
for (var key in widget.existingData!.keys) {
|
||||
rmap[key]!["controller"]!.text =
|
||||
widget.existingData?[key].toString() ?? "";
|
||||
}
|
||||
} else {
|
||||
// Set BLand if there is no existing data
|
||||
// Set BLand and default values if there is no existing data
|
||||
SharedPreferences.getInstance().then((prefs) {
|
||||
rmap["BLand"]!["controller"]!.text = prefs.getString('bLand') ?? "";
|
||||
});
|
||||
|
||||
rmap["Datum"]!["controller"]!.text = DateTime.now().toString();
|
||||
}
|
||||
|
||||
isTemplate = widget.isTemplate;
|
||||
@@ -343,7 +346,7 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
||||
},
|
||||
),
|
||||
),
|
||||
child: Text(AppLocalizations.of(context)!.tracking),
|
||||
child: Text(AppLocalizations.of(context)!.trackingAnAusschalten),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
|
||||
@@ -382,12 +385,12 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
||||
// ---------- Track found
|
||||
SpurGefunden(
|
||||
spurFund: rmap["SpurFund"]!["controller"]!,
|
||||
// spurLang: rmap["SpurLang"]!["controller"]!,
|
||||
// spurTiere: rmap["SpurTiere"]!["controller"]!,
|
||||
// spSicher: rmap["SpSicher"]!["controller"]!,
|
||||
spurLang: rmap["SpurLang"]!["controller"]!,
|
||||
spurTiere: rmap["SpurTiere"]!["controller"]!,
|
||||
spSicher: rmap["SpSicher"]!["controller"]!,
|
||||
welpenSp: rmap["WelpenSp"]!["controller"]!,
|
||||
// welpenAnz: rmap["WelpenAnz"]!["controller"]!,
|
||||
// wpSicher: rmap["WpSicher"]!["controller"]!,
|
||||
welpenAnz: rmap["WelpenAnz"]!["controller"]!,
|
||||
wpSicher: rmap["WpSicher"]!["controller"]!,
|
||||
),
|
||||
const Divider(),
|
||||
const SizedBox(height: 20),
|
||||
@@ -505,13 +508,14 @@ class _ExcursionMainState extends State<ExcursionMain> {
|
||||
DatabasesEnum.excursion,
|
||||
);
|
||||
return;
|
||||
} else if (!empty) {
|
||||
await AddEntriesDialogHelper.showSaveOptionsDialog(
|
||||
} else {
|
||||
bool pop = await AddEntriesDialogHelper.showSaveOptionsDialog(
|
||||
context,
|
||||
getFieldsText(),
|
||||
widget.isTemplate,
|
||||
DatabasesEnum.excursion,
|
||||
);
|
||||
if (pop && context.mounted) Navigator.of(context).pop();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user