Skip to content

How to change the number of weeks in the Flutter event calendar (SfCalendar)

Notifications You must be signed in to change notification settings

SyncfusionExamples/number-of-weeks-in-view-flutter-event-calendar

Repository files navigation

How to change the number of weeks in the Flutter Calendar?

A quick-start example to help you to change the number of weeks in the Flutter Calendar.

You can display the required number of weeks in the Flutter Event Calendar by using the numberOfWeeksInView property of the MonthViewSettings.By default, numberOfWeeksInView starts from current week, and this can be modified using the initialDisplayDate property of calendar. In this sample the two weeks calendar is displyed by setting the numberOfWeeksInView property with the value 2.

NumberofMonthRows

For more details , Refer to our UG documentation Customize number of month rows.

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.