monthHeaderSettings property

MonthHeaderSettings monthHeaderSettings
final

Sets the style to customize month label in SfCalendar schedule view.

Allows to customize the MonthHeaderSettings.monthFormat, MonthHeaderSettings.height, MonthHeaderSettings.textAlign, MonthHeaderSettings.backgroundColor and MonthHeaderSettings.labelTextStyle in month label style of schedule view in calendar.

See also:


@override
 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.schedule,
       scheduleViewSettings: ScheduleViewSettings(
           monthHeaderSettings: MonthHeaderSettings(
               monthFormat: 'MMMM, yyyy',
               height: 100,
               textAlign: TextAlign.left,
               backgroundColor: Colors.green,
               monthTextStyle: TextStyle(
                   color: Colors.red,
                   fontSize: 25,
                   fontWeight: FontWeight.w400))),
     ),
   );
 }

Implementation

final MonthHeaderSettings monthHeaderSettings;