Articles in this section
Category / Section

How to Customize Date Header of Schedule View in Flutter Calendar?

3 mins read

In the Flutter Event Calendar, you can customize the day, month, week header of schedule view by using the DayHeaderSettings, WeekHeaderSettings, MonthHeaderSettings properties of ScheduleViewsettings.

    child: SfCalendar(
  view: CalendarView.schedule,
  scheduleViewSettings: ScheduleViewSettings(
      dayHeaderSettings: DayHeaderSettings(
          dateTextStyle: TextStyle(color: Colors.green, fontSize: 10),
          dayFormat: 'EEEE',
          dayTextStyle: TextStyle(color: Colors.red, fontSize: 10)),
      weekHeaderSettings: WeekHeaderSettings(
          weekTextStyle: TextStyle(
            color: Colors.pink,
          ),
          startDateFormat: 'MMMM dd, yyyy',
          endDateFormat: 'MMMM dd, yyyy'),
      monthHeaderSettings: MonthHeaderSettings(
          monthFormat: 'MMM  yyyy',
          backgroundColor: Colors.teal,
          monthTextStyle: TextStyle(color: Colors.black),textAlign: TextAlign.center)),
  dataSource: _getCalendarDataSource(),
)),

View sample in GitHub

customization


Conclusion

I hope you enjoyed learning about how to customize date header of Schedule view in the Flutter Calendar.

You can refer to our Flutter Calendar page to know about its other groundbreaking feature representations. You can also explore our Flutter Calendar Documentation to understand how to manipulate data.

For current customers you can check out on our Flutter components from the License and Download page. If you are new to Syncfusion, you can try our 30-day free trial to check out our Flutter Calendar and other Flutter components.

If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!


 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied