yearCellStyle property Null safety

HijriDatePickerYearCellStyle yearCellStyle
final

Options to customize the year and decade view of the SfHijriDateRangePicker.

Allows to customize the HijriDatePickerYearCellStyle.textStyle, HijriDatePickerYearCellStyle.todayTextStyle, HijriDatePickerYearCellStyle.disabledDatesTextStyle, HijriDatePickerYearCellStyle.cellDecoration, HijriDatePickerYearCellStyle.todayCellDecoration, HijriDatePickerYearCellStyle.disabledDatesDecoration in year and decade view of the date range picker.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.decade,
         enablePastDates: false,
         yearCellStyle: HijriDatePickerYearCellStyle(
           textStyle: TextStyle(
               fontWeight: FontWeight.w400, fontSize: 15,
                    color: Colors.black),
           todayTextStyle: TextStyle(
               fontStyle: FontStyle.italic,
               fontSize: 15,
               fontWeight: FontWeight.w500,
               color: Colors.red),
           disabledDatesDecoration: BoxDecoration(
               color: const Color(0xFFDFDFDF).withOpacity(0.2),
               border: Border.all(color: const Color(0xFFB6B6B6),
                    width: 1),
               shape: BoxShape.circle),
         ),
       ),
     ),
   );
 }

Implementation

final HijriDatePickerYearCellStyle yearCellStyle;