backgroundColor property

Color? backgroundColor
final

The color which fills the background of SfDateRangePicker view header in month view.

Defaults to null.

Using a SfDateRangePickerTheme gives more fine-grained control over the appearance of various components of the date range picker.

See also:


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

Implementation

final Color? backgroundColor;