Hi James,
Thank you for the update.
Regarding Query1:
Using the `initialSelectedDate` property of the calendar you can set the initial selected for the calendar. Please find the following UG link for the same.
Also using `onViewChanged` callback, you set the selected date for calendar using `selectedDate` property of `CalendarController`. Please find the following link for the same.
Regarding Query 2:
You can get the selected date appointment using `onTap` callback of the flutter calendar. Please find the following UG link for the same. Please find the code snippet.
Code snippet:
CalendarController calendarController= CalendarController();
void viewChanged(ViewChangedDetails viewChangedDetails) { SchedulerBinding.instance.addPostFrameCallback((duration) { calendarController.selectedDate = DateTime.now(); }); } |
UG link:
By setting the selectedDate through the `onViewChanged` callback, you can get appointments on the selected date.
We hope that this helps you. Please let us know if you need further assistance.
Regards,
Indumathi R