updates & fixes

merge-update-with-lab-changes
haroon amjad 2 years ago
parent 536c95c825
commit 6c98f9f94f

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

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

Loading…
Cancel
Save