Skip to content

Commit

Permalink
RCF-372: Fixed error messages (#322)
Browse files Browse the repository at this point in the history
* RCF-352: Added db encryption

Signed-off-by: HimajaDhanyamraju2 <[email protected]>

* RCF-352: Added static password for debug mode

Signed-off-by: HimajaDhanyamraju2 <[email protected]>

* RCF-372: Fixed error messages

Signed-off-by: HimajaDhanyamraju2 <[email protected]>

---------

Signed-off-by: HimajaDhanyamraju2 <[email protected]>
Co-authored-by: HimajaDhanyamraju2 <[email protected]>
  • Loading branch information
HimajaDhanyamraju2 and HimajaDhanyamraju2 authored Apr 22, 2024
1 parent 477c636 commit 3d47e6c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/ui/process_ui/widgets/textbox_control.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class _TextBoxControlState extends State<TextBoxControl>
MediaQuery.of(context).orientation == Orientation.portrait;
List<String> choosenLang = globalProvider.chosenLang;
if (!(widget.e.type == "simpleType")) {
choosenLang = ["English"];
choosenLang = [choosenLang[0]];
}
Map<String, String> tranliterationLangMapper = {
"eng": "Latin",
Expand Down Expand Up @@ -215,19 +215,16 @@ class _TextBoxControlState extends State<TextBoxControl>
return null;
} else if (!widget.validation.hasMatch(value)) {
return AppLocalizations.of(context)!
.demographicsScreenInvalidMessage(
globalProvider.selectedLanguage);
.demographicsScreenInvalidMessage(lang);
}
}
if (value == null || value.isEmpty) {
return AppLocalizations.of(context)!
.demographicsScreenEmptyMessage(
globalProvider.selectedLanguage);
.demographicsScreenEmptyMessage(lang);
}
if (!widget.validation.hasMatch(value)) {
return AppLocalizations.of(context)!
.demographicsScreenInvalidMessage(
globalProvider.selectedLanguage);
.demographicsScreenInvalidMessage(lang);
}
return null;
},
Expand Down

0 comments on commit 3d47e6c

Please sign in to comment.