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
2025-05-09 22:29:34 +02:00
parent b7b16c6acb
commit cdd7f5cafb
5 changed files with 158 additions and 95 deletions

View File

@@ -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;
}
}