selectionTextStyle property
The text style for the text in the selected date or dates cell of SfHijriDateRangePicker.
Defaults to null.
Using a SfDateRangePickerTheme
gives more fine-grained control over the
appearance of various components of the date range picker.
See also:
- selectionRadius, which is the radius for the selection view in the hijri date range picker when the selection shape set as DateRangePickerSelectionShape.circle.
- selectionColor, which fills the background of the selected cells in the hijri date range picker.
- startRangeSelectionColor, which fills the background of the first cell of the range selection in hijri date range picker.
- endRangeSelectionColor, which fills the background of the last cell of the range selection in hijri date range picker.
- rangeSelectionColor, which fills the background of the in between cells of hijri date range picker in range selection.
- rangeTextStyle, which is used to set text style for the text in the selected range cell's of hijri date range picker.
- Knowledge base: How to change the selection radius
- Knowledge base: How to customize the selected range cells
- Knowledge base: How to change the selection shape
- Knowledge base:
How to customize the selected month cell
(https://www.syncfusion.com/kb/11441/how-to-customize-the-selected-month-cell-in-the-flutter-date-range-picker-sfda
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
controller: _pickerController,
view: HijriDatePickerView.month,
enablePastDates: false,
selectionMode: DateRangePickerSelectionMode.multiRange,
selectionTextStyle: TextStyle(
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w500,
fontSize: 12,
color: Colors.white),
),
),
);
}
Implementation
final TextStyle? selectionTextStyle;