endRangeSelectionColor property

  1. @Deprecated('Use endRangeSelectionColor property in SfDateRangePicker')
Color? endRangeSelectionColor
final

The color which fills the SfDateRangePicker selection view of the range end date.

The color fills to the selection view of the date in PickerDateRange.endDate property.

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.range of DateRangePickerSelectionMode.multiRange.


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

Implementation

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