A quick-start example to update blackout dates using onViewChanged callback in the Flutter Calendar.
In the Flutter Event Calendar, you can update the blackoutDates by using onViewChanged callback of the calendar. Using this, You can disable the interaction for a certain date in the month view and timeline month view of the calendar.
You can obtain the days that are currently visible for the month using the onViewChanged function, and then add the desired dates to the _blackoutDateCollection variable and assign _blackoutDates to the calendar's blackoutdates property.
You can also refer our UG documentation to know more about blackoutDates.
To run this application, you need to first clone or download the ‘create a flutter maps widget in 10 minutes’ repository and open it in your preferred IDE. Then, build and run your project to view the output.
For more help, check the Syncfusion Flutter documentation, Flutter documentation.