monthCellStyle property

HijriDatePickerMonthCellStyle monthCellStyle
final

Options to customize the month cells of the SfHijriDateRangePicker.

Allows to customize the HijriDatePickerMonthCellStyle.textStyle, HijriDatePickerMonthCellStyle.todayTextStyle, HijriDatePickerMonthCellStyle.disabledDatesTextStyle, HijriDatePickerMonthCellStyle.blackoutDateTextStyle, HijriDatePickerMonthCellStyle.weekendTextStyle, HijriDatePickerMonthCellStyle.specialDatesTextStyle, HijriDatePickerMonthCellStyle.specialDatesDecoration, HijriDatePickerMonthCellStyle.blackoutDatesDecoration, HijriDatePickerMonthCellStyle.cellDecoration, HijriDatePickerMonthCellStyle.todayCellDecoration, HijriDatePickerMonthCellStyle.disabledDatesDecoration, HijriDatePickerMonthCellStyle.weekendDatesDecoration in the month cells of the date range picker.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         enablePastDates: false,
         monthCellStyle: HijriDatePickerMonthCellStyle(
           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 HijriDatePickerMonthCellStyle monthCellStyle;