disabledDatesTextStyle property
The text style for the text in the disabled dates cell of SfHijriDateRangePicker year and decade 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:
- disabledDatesDecoration, which used to set decoration for the disabled date cells in the year views of date range picker.
- textStyle, which used to set text style for the year cell in the year views of the date range picker.
- todayTextStyle, which used to set text style for the today date cell in the year views of the date range picker.
- SfHijriDateRangePicker.selectionTextStyle, which is used to set the text style for the text in the selected cell of date range picker.
- SfHijriDateRangePicker.rangeTextStyle, which is used to set text style for the text in the selected range cell's of date range picker.
- Knowledge base: How to apply theming
- Knowledge base: How to style the year, decade and century views
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
controller: _pickerController,
view: HijriDatePickerView.year,
selectionMode: DateRangePickerSelectionMode.range,
yearCellStyle: HijriDatePickerYearCellStyle(
disabledDatesTextStyle: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w300,
color: Colors.black)),
),
),
);
}
Implementation
final TextStyle? disabledDatesTextStyle;