|
|
|
@ -240,11 +240,10 @@ class _SearchByClinicState extends State<SearchByClinic> {
|
|
|
|
|
dropdownValue =
|
|
|
|
|
clincs.clinicID.toString() + "-" + clincs.isLiveCareClinicAndOnline.toString() + "-" + clincs.liveCareClinicID.toString() + "-" + clincs.liveCareServiceID.toString();
|
|
|
|
|
if (dropdownValue == "253-false-0-0") {
|
|
|
|
|
Navigator.push(context, FadePage(page: LaserClinic()));
|
|
|
|
|
// Navigator.push(context, FadePage(page: LaserClinic()));
|
|
|
|
|
} else if (!isDentalSelectedAndSupported()) {
|
|
|
|
|
projectDropdownValue = "";
|
|
|
|
|
if(!nearestAppo)
|
|
|
|
|
getDoctorsList(context);
|
|
|
|
|
if (!nearestAppo) getDoctorsList(context);
|
|
|
|
|
} else {}
|
|
|
|
|
});
|
|
|
|
|
projectViewModel.analytics.appointment.book_appointment_select_clinic(appointment_type: 'regular', clinic: clincs.clinicDescription);
|
|
|
|
@ -333,7 +332,11 @@ class _SearchByClinicState extends State<SearchByClinic> {
|
|
|
|
|
setState(() {
|
|
|
|
|
selectedHospital = newValue;
|
|
|
|
|
projectDropdownValue = newValue.mainProjectID.toString();
|
|
|
|
|
getDoctorsList(context);
|
|
|
|
|
if (dropdownValue.split("-")[0] == "253") {
|
|
|
|
|
Navigator.push(context, FadePage(page: LaserClinic()));
|
|
|
|
|
} else {
|
|
|
|
|
getDoctorsList(context);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
@ -458,7 +461,7 @@ class _SearchByClinicState extends State<SearchByClinic> {
|
|
|
|
|
|
|
|
|
|
bool isDentalSelectedAndSupported() {
|
|
|
|
|
if (dropdownValue != null)
|
|
|
|
|
return dropdownValue != "" && (dropdownValue.split("-")[0] == "17") && isMobileAppDentalAllow;
|
|
|
|
|
return dropdownValue != "" && (dropdownValue.split("-")[0] == "17" || dropdownValue.split("-")[0] == "253") && isMobileAppDentalAllow;
|
|
|
|
|
else
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
@ -531,8 +534,8 @@ class _SearchByClinicState extends State<SearchByClinic> {
|
|
|
|
|
searchInfo.clinic = selectedClinic;
|
|
|
|
|
searchInfo.date = DateTime.now();
|
|
|
|
|
|
|
|
|
|
if(projectViewModel.isLogin) {
|
|
|
|
|
if(projectViewModel.user.age > 12) {
|
|
|
|
|
if (projectViewModel.isLogin) {
|
|
|
|
|
if (projectViewModel.user.age > 12) {
|
|
|
|
|
navigateToDentalComplaints(context, searchInfo);
|
|
|
|
|
} else {
|
|
|
|
|
callDoctorsSearchAPI(17);
|
|
|
|
|