|
|
|
|
@ -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 {
|
|
|
|
|
|