rangeTextStyle property

  1. @Deprecated('Use rangeTextStyle property in SfDateRangePicker')
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: PickerDateRange DateRangePickerSelectionMode


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

Implementation

@Deprecated('Use rangeTextStyle property in SfDateRangePicker')
final TextStyle? rangeTextStyle;