Skip to content

SyncfusionExamples/excel-data-flutter-calendar

Repository files navigation

How to load the Excel data to the Flutter Calendar (SfCalendar)?

This example demonstrates how to load the Excel data to the Flutter Calendar (SfCalendar).

In the Flutter Calendar, you can load the Excel sheet data into the calendar events.

Adding the required packages

Add the required packages in the Pubspec.yaml file.

syncfusion_flutter_calendar: 20.x.xx
intl: ^0.17.0
excel: ^1.1.5

Adding Appointments data to excel sheet

Then add the appointment data to the excel sheet and attach the excel file under the asset folder.

Adding appointment

Getting calenadar events from the excel sheet

By using the getDataFromExcel() method and you can get the excel sheet data into the calendar events. In this getDataFromExcel() method the appointment data can be get from the excel sheet and it is converted as Meeting and stored in an appointment collection.

Assignings events to calendar

Assign those events to the DataSource property of 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 load the Excel sheet data into Flutter Calendar?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •