viewHeaderStyle property

DateRangePickerViewHeaderStyle viewHeaderStyle
final

Sets the style to customize SfHijriDateRangePicker month view view header.

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

See also:


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

Implementation

final DateRangePickerViewHeaderStyle viewHeaderStyle;