Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.7 KB

File metadata and controls

21 lines (14 loc) · 1.7 KB

How to update blackout dates using onViewChanged callback in the Flutter Calendar?

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.

Requirements to run the demo

How to run this application

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.

Further help

For more help, check the Syncfusion Flutter documentation, Flutter documentation.