updates & fixes

merge-update-with-lab-changes
haroon amjad 1 year ago
parent 536c95c825
commit 6c98f9f94f

@ -627,7 +627,7 @@ class _DoctorProfileState extends State<DoctorProfile> with TickerProviderStateM
navigateToWaitingAppointment(context);
}).catchError((err) {
GifLoaderDialogUtils.hideDialog(context);
AppToast.showErrorToast(message: err);
AppToast.showErrorToast(message: err, localContext: context);
print(err);
});
}

@ -359,16 +359,16 @@ class _DocAvailableAppointmentsState extends State<DocAvailableAppointments> wit
DocAvailableAppointments.areAppointmentsAvailable = true;
freeSlotsResponse = res['FreeTimeSlots'];
_getJSONSlots().then((value) {
setState(() => {
_events.clear(),
_events = value,
setState(() {
_events.clear();
_events = value;
if (widget.doctorSchedule != null)
{
_onDaySelected(DateUtil.convertStringToDate(widget.doctorSchedule['Date'])),
_onDaySelected(DateUtil.convertStringToDate(widget.doctorSchedule['Date']));
_calendarController.selectedDate = DateUtil.convertStringToDate(
widget.doctorSchedule['Date'],
)
},
);
};
});
});
} else {

Loading…
Cancel
Save