monthFormat property
Formats the month label text in the month label SfCalendar schedule view.
Defaults to MMMM yyyy
.
See also:
- monthTextStyle, which used to customize the text style for the text in the month header view in calendar.
- textAlign, which aligns the month header text in the month header view of calendar.
- SfCalendar.scheduleViewMonthHeaderBuilder, which used to set custom widget for month header view of schedule view in calendar.
- Knowledge base: How to customize day, week, month header of schedule view
- Knowledge base: How to customize schedule view month header with builder
- Knowledge base: How to view schedule
- Knowledge base: How to customize the schedule view
@override
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.schedule,
scheduleViewSettings: ScheduleViewSettings(
monthHeaderSettings: MonthHeaderSettings(
monthFormat: 'MMMM, yyyy')),
),
);
}
Implementation
final String monthFormat;