syncfusion / flutter-examples

This repository contains the Syncfusion Flutter UI widgets examples and the guide to use them.
Other
1.98k stars 775 forks source link

how to disable some days which I need to disable #710

Closed azabcodes closed 1 year ago

mrchuis commented 1 year ago

@mazab99, use selectableDayPredicate:

selectableDayPredicate: (DateTime dateTime) { return dateTime.weekday == 1 ? true : false; },

MuniappanSubramanian commented 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