disabledDatesTextStyle property

TextStyle? disabledDatesTextStyle
final

The text style for the text in the disabled dates cell of SfDateRangePicker month view.

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.month,
         enablePastDates: false,
         selectionMode: DateRangePickerSelectionMode.range,
         monthCellStyle: DateRangePickerMonthCellStyle(
             disabledDatesTextStyle: TextStyle(
                 fontStyle: FontStyle.normal,
                 fontWeight: FontWeight.w300,
                 fontSize: 10,
                 color: Colors.grey)),
       ),
     ),
   );
 }

Implementation

final TextStyle? disabledDatesTextStyle;