updates & fixes for walkin appointment CR

merge-update-with-lab-changes
haroon amjad 2 years ago
parent 1b545c4d0b
commit 82e933a06f

@ -622,7 +622,7 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
canPayForWalkInAppointment() { canPayForWalkInAppointment() {
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
GifLoaderDialogUtils.showMyDialog(context); 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); GifLoaderDialogUtils.hideDialog(context);
navigateToWaitingAppointment(context); navigateToWaitingAppointment(context);
}).catchError((err) { }).catchError((err) {

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

@ -313,12 +313,12 @@ class _AppointmentDetailsState extends State<AppointmentDetails> with SingleTick
canPayForWalkInAppointment() { canPayForWalkInAppointment() {
DoctorsListService service = new DoctorsListService(); DoctorsListService service = new DoctorsListService();
GifLoaderDialogUtils.showMyDialog(context); 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); GifLoaderDialogUtils.hideDialog(context);
navigateToWaitingAppointment(context); navigateToWaitingAppointment(context);
}).catchError((err) { }).catchError((err) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err); AppToast.showErrorToast(message: err, localContext: context);
print(err); print(err);
}); });
} }

Loading…
Cancel
Save