From 72df25d94979868c59e2b728c73fc7da45616fe9 Mon Sep 17 00:00:00 2001 From: Elham Rababh Date: Sun, 28 Nov 2021 09:46:02 +0200 Subject: [PATCH] fix issue --- .../patients/register_patient/RegisterSearchPatientPage.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart b/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart index 0d2e398c..6b10bfd1 100644 --- a/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart +++ b/lib/screens/patients/register_patient/RegisterSearchPatientPage.dart @@ -44,7 +44,7 @@ class _RegisterSearchPatientPageState extends State { List countryList; - dynamic country; + dynamic country ; bool isSubmitted = false; @@ -109,6 +109,8 @@ class _RegisterSearchPatientPageState extends State { countryList.add(iraqCountry); countryList.add(liberiaCountry); countryList.add(senegalCountry); + country = countryList[0]; + _phoneCode.text = countryList[0]['id'].toString(); } @override