rangeTextStyle property

TextStyle? rangeTextStyle
final

The text style for the text in the selected range or ranges cell of SfDateRangePicker month view.

The style applies to the dates that falls between the PickerDateRange.startDate and PickerDateRange.endDate.

Defaults to null.

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

Note: This applies only when DateRangePickerSelectionMode set as DateRangePickerSelectionMode.range or DateRangePickerSelectionMode.multiRange.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.month,
         enablePastDates: false,
         selectionMode: DateRangePickerSelectionMode.multiRange,
         rangeTextStyle: TextStyle(
                 fontStyle: FontStyle.italic,
                 fontWeight: FontWeight.w500,
                 fontSize: 12,
                 color: Colors.black),
       ),
     ),
   );
 }

Implementation

final TextStyle? rangeTextStyle;