Closed azabcodes closed 1 year ago
@mazab99
You can disable the interaction for a certain date in the month view and timeline month view by using the blackoutDates property in the Flutter Calendar. Refer to the below UG documentation to achieve your requirement,
https://help.syncfusion.com/flutter/calendar/month-view#blackout-dates
You can refer to our KB documentation to know more details about blackout dates and their customization, https://support.syncfusion.com/kb/article/10759/how-to-update-blackout-dates-using-onviewchanged-callback-in-the-flutter-calendar https://support.syncfusion.com/kb/article/10377/how-to-add-active-dates-in-the-flutter-calendar https://support.syncfusion.com/kb/article/10346/how-to-customize-the-blackout-dates-in-the-flutter-event-calendar-sfcalendar
@mazab99, use selectableDayPredicate:
selectableDayPredicate: (DateTime dateTime) { return dateTime.weekday == 1 ? true : false; },