|
|
|
|
@ -28,6 +28,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
bool isObGyneAppointment;
|
|
|
|
|
bool isShowFlag;
|
|
|
|
|
bool isDoctorNameSearch;
|
|
|
|
|
bool isContinueDentalPlan;
|
|
|
|
|
OBGyneProcedureListResponse obGyneProcedureListResponse;
|
|
|
|
|
final VoidCallback onTap;
|
|
|
|
|
|
|
|
|
|
@ -36,6 +37,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
@required this.isLiveCareAppointment,
|
|
|
|
|
this.isObGyneAppointment = false,
|
|
|
|
|
this.isDoctorNameSearch = false,
|
|
|
|
|
this.isContinueDentalPlan = false,
|
|
|
|
|
this.isShowFlag = true,
|
|
|
|
|
this.onTap,
|
|
|
|
|
this.obGyneProcedureListResponse});
|
|
|
|
|
@ -54,7 +56,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
// showDentalChiefComplaintsList(context);
|
|
|
|
|
// } else
|
|
|
|
|
if (isShowFlag) {
|
|
|
|
|
getDoctorsProfile(context, doctor, isAppo: true);
|
|
|
|
|
getDoctorsProfile(context, doctor, isAppo: true, isContinueDentalPlan: isContinueDentalPlan);
|
|
|
|
|
}
|
|
|
|
|
(onTap ?? () {})(); // For log analytics of doctor click from book appointment
|
|
|
|
|
}
|
|
|
|
|
@ -182,7 +184,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
return docSpeciality;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDoctorsProfile(context, DoctorList docObject, {isAppo}) {
|
|
|
|
|
getDoctorsProfile(context, DoctorList docObject, {isAppo, bool isContinueDentalPlan = false}) {
|
|
|
|
|
int languageID = projectViewModel.isArabic ? 1 : 2;
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
List<DoctorProfileList> docProfileList = [];
|
|
|
|
|
@ -195,7 +197,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
docProfileList.add(new DoctorProfileList.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
} else {}
|
|
|
|
|
navigateToDoctorProfile(context, docObject, docProfileList[0], isAppo: isAppo);
|
|
|
|
|
navigateToDoctorProfile(context, docObject, docProfileList[0], isAppo: isAppo, isContinueDentalPlan: isContinueDentalPlan);
|
|
|
|
|
} else {
|
|
|
|
|
AppToast.showErrorToast(message: res['ErrorEndUserMessage']);
|
|
|
|
|
}
|
|
|
|
|
@ -234,7 +236,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
FadePage(page: ObGyneTimeSlots(projectID: doctor.projectID, selectedClinicID: doctor.clinicID, selectedDoctorID: doctor.doctorID, obGyneProcedureListResponse: obGyneProcedureListResponse)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future navigateToDoctorProfile(context, docObject, docProfile, {isAppo}) async {
|
|
|
|
|
Future navigateToDoctorProfile(context, docObject, docProfile, {isAppo, bool isContinueDentalPlan = false}) async {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(
|
|
|
|
|
@ -244,6 +246,7 @@ class DoctorView extends StatelessWidget {
|
|
|
|
|
docProfileList: docProfile,
|
|
|
|
|
isOpenAppt: isAppo,
|
|
|
|
|
isDoctorNameSearch: isDoctorNameSearch,
|
|
|
|
|
isContinueDentalPlan: isContinueDentalPlan,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|