|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|