my appointment fix

dq_and_master
haroon amjad 5 years ago
parent b9269f525a
commit bf999e611b

@ -117,6 +117,7 @@ class _MyAppointmentsState extends State<MyAppointments>
service.getPatientAppointmentHistory(false, context).then((res) {
print(res['AppoimentAllHistoryResultList'].length);
GifLoaderDialogUtils.hideDialog(context);
setState(() {
if (res['MessageStatus'] == 1) {
// setState(() {
if (res['AppoimentAllHistoryResultList'].length != 0) {
@ -130,6 +131,8 @@ class _MyAppointmentsState extends State<MyAppointments>
} else {
AppToast.showErrorToast(message: res['ErrorEndUserMessage']);
}
isDataLoaded = true;
});
}).catchError((err) {
GifLoaderDialogUtils.hideDialog(context);
print(err);
@ -256,9 +259,6 @@ class _MyAppointmentsState extends State<MyAppointments>
return;
}
}
setState(() {
isDataLoaded = true;
});
}
Widget getBookedAppointments() {

Loading…
Cancel
Save