adding country option to register page

merge-requests/882/head
hussam al-habibeh 4 years ago
parent 25f65802a5
commit 92d81700e1

@ -53,6 +53,7 @@ class _RegisterPatientPageState extends State<RegisterPatientPage>
@override
Widget build(BuildContext context) {
final screenSize = MediaQuery.of(context).size;
///TODO Elham* Add Translation
return BaseView<PatientRegistrationViewModel>(
builder: (_, model, w) => AppScaffold(

@ -42,7 +42,6 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
dynamic country;
//var countryName = ["Saudi Arabia", "UAE"];
bool isSubmitted = false;
TextEditingController _phoneController =
@ -255,6 +254,11 @@ class _RegisterSearchPatientPageState extends State<RegisterSearchPatientPage> {
setState(() {
isSubmitted = true;
});
if (country == null) {
countryError = TranslationBase.of(context).fieldRequired;
} else {
countryError = null;
}
if (isFormValid()) {
GifLoaderDialogUtils.showMyDialog(context);
CheckPatientForRegistrationModel

Loading…
Cancel
Save