backgroundColor property

Color? backgroundColor
final

The color which fills the SfDateRangePicker header view background.

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,
           headerStyle: DateRangePickerHeaderStyle(
             backgroundColor: Colors.grey,
           )),
     ),
   );
 }

Implementation

final Color? backgroundColor;