selectionColor property

Color? selectionColor
final

The color which fills the SfDateRangePicker selection view.

Defaults to null.

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

Note : It is applies only when the DateRangePickerSelectionMode set as DateRangePickerSelectionMode.single of DateRangePickerSelectionMode.multiple.

See more:


@override
 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.month,
         selectionMode: DateRangePickerSelectionMode.multiple,
         selectionColor: Colors.red,
       ),
     ),
   );
 }

Implementation

final Color? selectionColor;