DateRangePickerViewHeaderStyle class

Sets the style to customize SfDateRangePicker month view view header.

Allows to customize the textStyle and backgroundColor of the view header view in month view of SfDateRangePicker.


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.month,
         selectionMode: DateRangePickerSelectionMode.single,
         monthViewSettings: DateRangePickerMonthViewSettings(
             viewHeaderStyle: DateRangePickerViewHeaderStyle(
                 backgroundColor: Colors.red,
                 textStyle: TextStyle(
                     fontWeight: FontWeight.w500,
                     fontStyle: FontStyle.italic,
                    fontSize: 20,
                     color: Colors.white))),
       ),
     ),
   );
 }

Constructors

DateRangePickerViewHeaderStyle({Color backgroundColor, TextStyle textStyle})
creates a view header style for month view in SfDateRangePicker.

Properties

backgroundColor Color
The color which fills the background of SfDateRangePicker view header in month 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
textStyle TextStyle
The text style for the text in the SfDateRangePicker view header view of month view. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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