disabledDatesTextStyle property

TextStyle? disabledDatesTextStyle
final

The text style for the text in the disabled dates cell of SfDateRangePicker year, decade and century view.

Here, disabled cells are the one which falls beyond the minimum and maximum date range.

Defaults to null.

Using a SfDateRangePickerTheme gives more fine-grained control over the appearance of various components of the date range picker.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.year,
         selectionMode: DateRangePickerSelectionMode.range,
         yearCellStyle: DateRangePickerYearCellStyle(
             disabledDatesTextStyle: TextStyle(
                 fontSize: 12,
                 fontWeight: FontWeight.w300,
                 color: Colors.black)),
       ),
     ),
   );
 }

Implementation

final TextStyle? disabledDatesTextStyle;