diff --git a/lib/screens/patients/register_patient/RegisterPatientPage.dart b/lib/screens/patients/register_patient/RegisterPatientPage.dart index 740906ba..231ff3d1 100644 --- a/lib/screens/patients/register_patient/RegisterPatientPage.dart +++ b/lib/screens/patients/register_patient/RegisterPatientPage.dart @@ -53,6 +53,7 @@ class _RegisterPatientPageState extends State @override Widget build(BuildContext context) { final screenSize = MediaQuery.of(context).size; + ///TODO Elham* Add Translation return BaseView( builder: (_, model, w) => AppScaffold( diff --git a/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart b/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart index 91ee7dd9..432842d3 100644 --- a/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart +++ b/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart @@ -42,7 +42,6 @@ class _RegisterSearchPatientPageState extends State { dynamic country; - //var countryName = ["Saudi Arabia", "UAE"]; bool isSubmitted = false; TextEditingController _phoneController = @@ -255,6 +254,11 @@ class _RegisterSearchPatientPageState extends State { setState(() { isSubmitted = true; }); + if (country == null) { + countryError = TranslationBase.of(context).fieldRequired; + } else { + countryError = null; + } if (isFormValid()) { GifLoaderDialogUtils.showMyDialog(context); CheckPatientForRegistrationModel