headerStyle property

DateRangePickerHeaderStyle headerStyle
final

Sets the style for customizing the SfHijriDateRangePicker header view.

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

See also:

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

Implementation

final DateRangePickerHeaderStyle headerStyle;