leadingDatesTextStyle property

TextStyle? leadingDatesTextStyle
final

The text style for the text in the leading 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.

Note: This is applies only when the DateRangePickerMonthViewSettings.showTrailingAndLeadingDates property set as true.

This property not applicable when the SfDateRangePicker.pickerMode set as DateRangePickerMode.hijri.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         monthViewSettings: DateRangePickerMonthViewSettings(
             showTrailingAndLeadingDates: true),
         monthCellStyle: DateRangePickerMonthCellStyle(
             leadingDatesTextStyle: TextStyle(
                 fontStyle: FontStyle.normal,
                 fontWeight: FontWeight.w300,
                 fontSize: 11,
                 color: Colors.black)),
       ),
    ),
   );
 }

Implementation

final TextStyle? leadingDatesTextStyle;