DateRangePickerYearCellStyle class

The style have properties which allow to customize the year, decade and century view of the SfDateRangePicker.

Allows to customize the textStyle, todayTextStyle, leadingDatesTextStyle, disabledDatesTextStyle, cellDecoration, todayCellDecoration, leadingDatesDecoration and disabledDatesDecoration in year, decade and century view of the SfDateRangePicker.


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.decade,
         enablePastDates: false,
         yearCellStyle: DateRangePickerYearCellStyle(
           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

DateRangePickerYearCellStyle({TextStyle textStyle, TextStyle todayTextStyle, TextStyle leadingDatesTextStyle, TextStyle disabledDatesTextStyle, Decoration cellDecoration, Decoration todayCellDecoration, Decoration disabledDatesDecoration, Decoration leadingDatesDecoration})
Creates a date range picker year cell style for date range picker. [...]

Properties

cellDecoration Decoration
The decoration for the cells of SfDateRangePicker year, decade and century view. [...]
final
disabledDatesDecoration Decoration
The decoration for the disabled cells of SfDateRangePicker year, decade and century view. [...]
final
disabledDatesTextStyle TextStyle
The text style for the text in the disabled dates cell of SfDateRangePicker year, decade and century view. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
leadingDatesDecoration Decoration
The decoration for the leading date cells of SfDateRangePicker year, decade and century view. [...]
final
leadingDatesTextStyle TextStyle
The text style for the text in the leading dates cells of SfDateRangePicker year, decade and century view. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textStyle TextStyle
The text style for the text in the SfDateRangePicker year, decade and century view cells. [...]
final
todayCellDecoration Decoration
The decoration for the today cell of SfDateRangePicker year, decade and century view. [...]
final
todayTextStyle TextStyle
The text style for the text in the today cell of SfDateRangePicker year, decade and century 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