CalendarHeaderStyle class Null safety

Sets the style for customizing the SfCalendar header view.

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

header with different style in calendar

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),
   ),
 );
}
Mixed in types
Annotations

Constructors

CalendarHeaderStyle({TextAlign textAlign = TextAlign.start, Color? backgroundColor, TextStyle? textStyle})
Creates a header style for calendar. [...]
const

Properties

backgroundColor Color?
The color which fills the SfCalendar header view background. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textAlign TextAlign
How the text should be aligned horizontally in SfCalendar header view. [...]
final
textStyle TextStyle?
The text style for the text in the SfCalendar header view. [...]
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override