radiology fix in appointment details

merge-update-with-lab-changes
haroon amjad 5 years ago
parent 4705a79245
commit 9ecaaa1b12

@ -412,14 +412,18 @@ class _AppointmentActionsState extends State<AppointmentActions> {
.then((res) {
GifLoaderDialogUtils.hideDialog(context);
print(res['FinalRadiologyList']);
finalRadiology =
new FinalRadiology.fromJson(res['FinalRadiologyList'][0]);
print(finalRadiology.reportData);
navigateToRadiologyDetails(finalRadiology);
if (res['FinalRadiologyList'] != null) {
finalRadiology =
new FinalRadiology.fromJson(res['FinalRadiologyList'][0]);
print(finalRadiology.reportData);
navigateToRadiologyDetails(finalRadiology);
} else {
AppToast.showErrorToast(message: res['ErrorEndUserMessage']);
}
}).catchError((err) {
GifLoaderDialogUtils.hideDialog(context);
print(err);
AppToast.showErrorToast(message: err);
// AppToast.showErrorToast(message: err);
});
}

@ -470,7 +470,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
case 3:
return TranslationBase.of(context).services;
case 4:
return TranslationBase.of(context).bookAppo;
return TranslationBase.of(context).todoList;
}
}

Loading…
Cancel
Save