selectionColor property

  1. @Deprecated('Use selectionColor property in SfDateRangePicker')
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.


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

Implementation

@Deprecated('Use selectionColor property in SfDateRangePicker')
final Color? selectionColor;