leadingDatesDecoration property

Decoration? leadingDatesDecoration
final

The decoration for the leading date cells of SfDateRangePicker year, decade and century view.

Defaults to null.

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

Note: This property not applicable when the SfDateRangePicker.pickerMode set as DateRangePickerMode.hijri.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.century,
         selectionMode: DateRangePickerSelectionMode.range,
         yearCellStyle: DateRangePickerYearCellStyle(
           leadingDatesDecoration: BoxDecoration(
               color: Colors.grey.withOpacity(0.4),
               border: Border.all(color: const Color(0xFF2B732F),
                    width: 1),
               shape: BoxShape.circle),
         ),
       ),
     ),
   );
 }

Implementation

final Decoration? leadingDatesDecoration;