DateRangePickerMonthCellStyle class

The style allows to customize month cells of the SfDateRangePicker.

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


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

Constructors

DateRangePickerMonthCellStyle({@Deprecated('Use selectionColor property in SfDateRangePicker') Color selectionColor, @Deprecated('Use startRangeSelectionColor property in SfDateRangePicker') Color startRangeSelectionColor, @Deprecated('Use endRangeSelectionColor property in SfDateRangePicker') Color endRangeSelectionColor, @Deprecated('Use rangeSelectionColor property in SfDateRangePicker') Color rangeSelectionColor, TextStyle textStyle, TextStyle todayTextStyle, TextStyle trailingDatesTextStyle, TextStyle leadingDatesTextStyle, @Deprecated('Use selectionTextStyle property in SfDateRangePicker') TextStyle selectionTextStyle, TextStyle disabledDatesTextStyle, TextStyle blackoutDateTextStyle, TextStyle weekendTextStyle, TextStyle specialDatesTextStyle, Decoration specialDatesDecoration, Decoration blackoutDatesDecoration, Decoration cellDecoration, Decoration todayCellDecoration, Decoration disabledDatesDecoration, Decoration trailingDatesDecoration, Decoration leadingDatesDecoration, @Deprecated('Use rangeTextStyle property in SfDateRangePicker') TextStyle rangeTextStyle, Decoration weekendDatesDecoration})
Creates a date range picker month cell style for date range picker. [...]

Properties

blackoutDatesDecoration Decoration
The decoration for the blackout date cells of SfDateRangePicker month view. [...]
final
blackoutDateTextStyle TextStyle
The text style for the text in the blackout dates cell of SfDateRangePicker month view. [...]
final
cellDecoration Decoration
The decoration for the month cells of SfDateRangePicker month view. [...]
final
disabledDatesDecoration Decoration
The decoration for the disabled date cells of SfDateRangePicker month view. [...]
final
disabledDatesTextStyle TextStyle
The text style for the text in the disabled dates cell of SfDateRangePicker month view. [...]
final
endRangeSelectionColor Color
The color which fills the SfDateRangePicker selection view of the range end date. [...]
@Deprecated('Use endRangeSelectionColor property in SfDateRangePicker'), final
hashCode int
The hash code for this object. [...]
read-only, override
leadingDatesDecoration Decoration
The decoration for the leading date cells of SfDateRangePicker month view. [...]
final
leadingDatesTextStyle TextStyle
The text style for the text in the leading dates cell of SfDateRangePicker month view. [...]
final
rangeSelectionColor Color
The color which fills the SfDateRangePicker selection view for the range of dates which falls between the PickerDateRange.startDate and PickerDateRange.endDate. [...]
@Deprecated('Use rangeSelectionColor property in SfDateRangePicker'), final
rangeTextStyle TextStyle
The text style for the text in the selected range or ranges cell of SfDateRangePicker month view. [...]
@Deprecated('Use rangeTextStyle property in SfDateRangePicker'), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectionColor Color
The color which fills the SfDateRangePicker selection view. [...]
@Deprecated('Use selectionColor property in SfDateRangePicker'), final
selectionTextStyle TextStyle
The text style for the text in the selected date or dates cell of SfDateRangePicker month view. [...]
@Deprecated('Use selectionTextStyle property in SfDateRangePicker'), final
specialDatesDecoration Decoration
The decoration for the special date cells of SfDateRangePicker month view. [...]
final
specialDatesTextStyle TextStyle
The text style for the text in the special dates cell of SfDateRangePicker month view. [...]
final
startRangeSelectionColor Color
The color which fills the SfDateRangePicker selection view of the range start date. [...]
@Deprecated('Use startRangeSelectionColor property in SfDateRangePicker'), final
textStyle TextStyle
The text style for the text in the SfDateRangePicker month cells. [...]
final
todayCellDecoration Decoration
The decoration for the today text cell of SfDateRangePicker month view. [...]
final
todayTextStyle TextStyle
The text style for the text in the today cell of SfDateRangePicker month view. [...]
final
trailingDatesDecoration Decoration
The decoration for the trailing date cells of SfDateRangePicker month view. [...]
final
trailingDatesTextStyle TextStyle
The text style for the text in the trailing dates cell of SfDateRangePicker month view. [...]
final
weekendDatesDecoration Decoration
The decoration for the weekend date cells of SfDateRangePicker month view. [...]
final
weekendTextStyle TextStyle
The text style for the text in the weekend dates cell of SfDateRangePicker month view. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override