headerStyle property Null safety

CalendarHeaderStyle headerStyle

Sets the style for customizing the SfCalendar header view.

Allows to customize the CalendarHeaderStyle.textStyle, CalendarHeaderStyle.textAlign and CalendarHeaderStyle.backgroundColor in header view of calendar.

header with different style in calendar

See also:

Widget build(BuildContext context) {
 return Container(
 child: SfCalendar(
     view: CalendarView.week,
     headerStyle: CalendarHeaderStyle(
         textStyle: TextStyle(color: Colors.red, fontSize: 20),
         textAlign: TextAlign.center,
         backgroundColor: Colors.blue),


final CalendarHeaderStyle headerStyle;