From 3d47e6cf1bb467ee97cbfeccfe4b3bf62bd9d9b1 Mon Sep 17 00:00:00 2001 From: Himaja Dhanyamraju <43470317+HimajaDhanyamraju2@users.noreply.github.com> Date: Mon, 22 Apr 2024 09:58:30 +0530 Subject: [PATCH] RCF-372: Fixed error messages (#322) * RCF-352: Added db encryption Signed-off-by: HimajaDhanyamraju2 * RCF-352: Added static password for debug mode Signed-off-by: HimajaDhanyamraju2 * RCF-372: Fixed error messages Signed-off-by: HimajaDhanyamraju2 --------- Signed-off-by: HimajaDhanyamraju2 Co-authored-by: HimajaDhanyamraju2 --- lib/ui/process_ui/widgets/textbox_control.dart | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/ui/process_ui/widgets/textbox_control.dart b/lib/ui/process_ui/widgets/textbox_control.dart index 107fb71d..04d60a9a 100644 --- a/lib/ui/process_ui/widgets/textbox_control.dart +++ b/lib/ui/process_ui/widgets/textbox_control.dart @@ -130,7 +130,7 @@ class _TextBoxControlState extends State MediaQuery.of(context).orientation == Orientation.portrait; List choosenLang = globalProvider.chosenLang; if (!(widget.e.type == "simpleType")) { - choosenLang = ["English"]; + choosenLang = [choosenLang[0]]; } Map tranliterationLangMapper = { "eng": "Latin", @@ -215,19 +215,16 @@ class _TextBoxControlState extends State 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; },