rangeTextStyle property Null safety

TextStyle? rangeTextStyle
final

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

The style applies to the dates that falls between the HijriDateRange.startDate and HijriDateRange.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: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         enablePastDates: false,
         selectionMode: DateRangePickerSelectionMode.multiRange,
         rangeTextStyle: TextStyle(
                 fontStyle: FontStyle.italic,
                 fontWeight: FontWeight.w500,
                 fontSize: 12,
                 color: Colors.black),
       ),
     ),
   );
 }

Implementation

final TextStyle? rangeTextStyle;