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