Invalid NFC Scan check added

dev_3.3_ER_Online_CheckIn
haroon amjad 1 year ago
parent f65fe26fd2
commit 3a64858905

@ -344,10 +344,14 @@ class _EROnlineCheckInHomePageState extends State<EROnlineCheckInHomePage> with
GifLoaderDialogUtils.showMyDialog(context);
ClinicListService ancillaryOrdersService = new ClinicListService();
ancillaryOrdersService.getProjectIDFromNFC(nfcID).then((response) {
print(response["GetProjectByNFC"]);
int projectID = response['GetProjectByNFC'][0]["ProjectID"];
GifLoaderDialogUtils.hideDialog(context);
Navigator.push(context, FadePage(page: EROnlineCheckInPaymentDetails(projectID: projectID)));
if (response["GetProjectByNFC"].length != 0) {
print(response["GetProjectByNFC"]);
int projectID = response['GetProjectByNFC'][0]["ProjectID"];
GifLoaderDialogUtils.hideDialog(context);
Navigator.push(context, FadePage(page: EROnlineCheckInPaymentDetails(projectID: projectID)));
} else {
AppToast.showErrorToast(message: "Invalid NFC Card Scanned.");
}
}).catchError((err) {
AppToast.showErrorToast(message: err.toString());
GifLoaderDialogUtils.hideDialog(context);

Loading…
Cancel
Save