DayHeaderSettings class Null safety

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

Allows to customize the dayFormat, width, dayTextStyle and dateTextStyle in day label style of schedule view in calendar.


@override
 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.schedule,
       scheduleViewSettings: ScheduleViewSettings(
           dayHeaderSettings: DayHeaderSettings(
               dayFormat: 'EEEE',
               width: 70,
               backgroundColor: Colors.black,
               dayTextStyle: TextStyle(
                 fontSize: 10,
                 fontWeight: FontWeight.w300,
                 color: Colors.white,
               ),
               dateTextStyle: TextStyle(
                 fontSize: 20,
                 fontWeight: FontWeight.w300,
                 color: Colors.white,
               ))),
     ),
   );
 }

Mixed in types
Annotations

Constructors

DayHeaderSettings({String dayFormat = 'EEE', double width = -1, TextStyle? dayTextStyle, TextStyle? dateTextStyle})
Creates a day header settings for schedule view in calendar. [...]
const

Properties

dateTextStyle TextStyle?
The text style for the date text in the day label of SfCalendar schedule view. [...]
final
dayFormat String
Formats the day text in the day label of SfCalendar schedule view. [...]
final
dayTextStyle TextStyle?
The text style for the day text in the day label of SfCalendar schedule view. [...]
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
width double
The width for day label to layout within this in SfCalendar schedule 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