headerStyle property Null safety

DateRangePickerHeaderStyle headerStyle
final

Sets the style for customizing the SfDateRangePicker header view.

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

See also:

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,
         ),
       ),
     ),
   );
 }

Implementation

final DateRangePickerHeaderStyle headerStyle;