updates & fixes for walkin appointment CR

dev_3.13.6_CR6750
haroon amjad 1 year ago
parent 1b545c4d0b
commit 82e933a06f

@ -622,7 +622,7 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
canPayForWalkInAppointment() {
DoctorsListService service = new DoctorsListService();
GifLoaderDialogUtils.showMyDialog(context);
service.canPayForWalkInAppointment(widget.doctor.projectID!, widget.doctor.clinicID!, widget.doctor.doctorID!).then((res) {
service.canPayForWalkInAppointment(widget.doctor.clinicID!, widget.doctor.projectID!, widget.doctor.doctorID!).then((res) {
GifLoaderDialogUtils.hideDialog(context);
navigateToWaitingAppointment(context);
}).catchError((err) {

@ -256,7 +256,6 @@ class _WaitingAppointmentVerificationState extends State<WaitingAppointmentVerif
}
startLocationCheckIn() async {
GifLoaderDialogUtils.showMyDialog(context);
locationUtils = new LocationUtils(isShowConfirmDialog: true, context: context);
locationUtils.getCurrentLocation(callBack: (value) {
projectDetailListModel = Utils.getProjectDetailObj(projectViewModel, projectViewModel.waitingAppointmentProjectID);
@ -264,10 +263,8 @@ class _WaitingAppointmentVerificationState extends State<WaitingAppointmentVerif
projectViewModel.setWaitingAppointmentNFCCode(projectDetailListModel.checkInQrCode!);
print(dist);
if (dist <= projectDetailListModel.geofenceRadius!) {
GifLoaderDialogUtils.hideDialog(context);
navigateToBookConfirm(context);
} else {
GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: TranslationBase.of(context).locationCheckInError);
}
});

@ -313,12 +313,12 @@ class _AppointmentDetailsState extends State<AppointmentDetails> with SingleTick
canPayForWalkInAppointment() {
DoctorsListService service = new DoctorsListService();
GifLoaderDialogUtils.showMyDialog(context);
service.canPayForWalkInAppointment(widget.appo.projectID!, widget.appo.clinicID!, widget.appo.doctorID!).then((res) {
service.canPayForWalkInAppointment(widget.appo.clinicID!, widget.appo.projectID!, widget.appo.doctorID!).then((res) {
GifLoaderDialogUtils.hideDialog(context);
navigateToWaitingAppointment(context);
}).catchError((err) {
GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err);
AppToast.showErrorToast(message: err, localContext: context);
print(err);
});
}

Loading…
Cancel
Save