rewrote check_required and did some map stuff. also fixed that typed in text in add place isnt saved

This commit is contained in:
Nico committed 2025-05-09 22:29:34 +02:00
1 parent b7b16c6acb
commit cdd7f5cafb
5 files changed
+158 -95

No files matched your search

@@ -0,0 +1,12 @@
class CheckRequired {
static bool checkRequired(Map<String, Map<String, dynamic>> fieldsList) {
for (String key in fieldsList.keys) {
if (fieldsList[key]!["required"]! && fieldsList[key]!["controller"]!.text.isEmpty) {
return true;
}
}
return false;
}
}