DateRangePickerHeaderStyle class

Sets the style for customizing the SfDateRangePicker header view.

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

Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.month,
         headerStyle: DateRangePickerHeaderStyle(
           textAlign: TextAlign.left,
           textStyle: TextStyle(
               color: Colors.blue, fontSize: 18, fontWeight: FontWeight.w400),
           backgroundColor: Colors.grey,
         ),
       ),
     ),
   );
 }

Constructors

DateRangePickerHeaderStyle({TextAlign textAlign: TextAlign.left, Color backgroundColor, TextStyle textStyle})
Creates a header style for date range picker.

Properties

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