selectionTextStyle property

  1. @Deprecated('Use selectionTextStyle property in SfDateRangePicker')
TextStyle? selectionTextStyle
final

The text style for the text in the selected date or 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.


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

Implementation

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