Skip to content

Repository files navigation

How to add, remove, update the resources in the Flutter Calendar (SfCalendar)?

This example demonstrates how to add, remove, update the resources in the Flutter Calendar (SfCalendar).

In the Flutter event calendar, you can dynamically insert, remove, and reset the resource by using the insert(), remove(), and reset() methods.

Add, remove and updating the resources in the calendar

Create a resource view by using the displayName, color, id, and image properties of the CalendarResource and add the resources to the appointment, by using the resources property of the CalendarDataSource. Then you can use the resourceID property from Appointment to assign appointments to the resources.

In this sample using the button click, you can use the insert(), remove(), and clear() methods to add, delete, and reset resources to the resource collection. You can also use the notifyListeners to notify the calendar UI of any changes.

You can also refer our UG documentation to know more about Resource support in the Flutter calendar.

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.

About

How to add, remove, update the resources in the Flutter Calendar (SfCalendar)

Topics

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages