leadingDatesTextStyle property Null safety

TextStyle? leadingDatesTextStyle
final

The text style for the text in the leading dates cells of SfDateRangePicker year, decade and century 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 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.year,
         selectionMode: DateRangePickerSelectionMode.range,
         yearCellStyle: DateRangePickerYearCellStyle(
             leadingDatesTextStyle: TextStyle(
                 fontSize: 12,
                 fontWeight: FontWeight.w300,
                 color: Colors.black)),
      ),
     ),
   );
 }

Implementation

final TextStyle? leadingDatesTextStyle;