cellDecoration property
The decoration for the cells of SfHijriDateRangePicker year and decade view.
Defaults to null.
Using a SfDateRangePickerTheme gives more fine-grained control over the
appearance of various components of the date range picker.
See also:
- textStyle, which used to set text style for the year cells in the year views of date range picker.
- disabledDatesDecoration, which used to set decoration for the disabled year cells in the year views of the date range picker.
- todayCellDecoration, which used to set decoration for the today date cell in the year views of the date range picker.
- SfHijriDateRangePicker.selectionColor, which fills the background of the selected cells in the date range picker.
- SfHijriDateRangePicker.startRangeSelectionColor, which fills the background of the first cell of the range selection in date range picker.
- SfHijriDateRangePicker.endRangeSelectionColor, which fills the background of the last cell of the range selection in date range picker.
- SfHijriDateRangePicker.rangeSelectionColor, which fills the background of the in between cells of date range picker in range selection.
- Knowledge base: How to apply theming
- Knowledge base: How to style the year, decade and century views
Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.decade,
         selectionMode: DateRangePickerSelectionMode.range,
         yearCellStyle: HijriDatePickerYearCellStyle(
           cellDecoration: BoxDecoration(
               color: Colors.green,
               border: Border.all(color: const Color(0xFF2B732F),
                    width: 1),
               shape: BoxShape.circle),
         ),
       ),
     ),
   );
 }
Implementation
final Decoration? cellDecoration;