|
void calendarTapped(CalendarTapDetails calendarTapDetails) { if (calendarTapDetails.targetElement == CalendarElement.appointment ||calendarTapDetails.targetElement == CalendarElement.agenda) { //// To do your requirement here. } } |
Hi Ralph,Thank you for contacting Syncfusion support.Based on the provided information, your requirement of getting the events details using the `targetElement` of the `onTap` callback of the Flutter event calendar. Please find the code snippet for the same.Code snippet:
void calendarTapped(CalendarTapDetails calendarTapDetails) {
if (calendarTapDetails.targetElement == CalendarElement.appointment ||calendarTapDetails.targetElement == CalendarElement.agenda) {
//// To do your requirement here.
}
}Please find the KB document for the getting appointment details using `onTap` callback.Please find the API links for the CalendarElement,Link:https://pub.dev/documentation/syncfusion_flutter_calendar/latest/calendar/CalendarElement-class.htmlWe hope that this helps you. Please let us know if you need further assistance.Regards,Indumathi R