textStyle property

TextStyle? textStyle
final

The text style for the text in the SfDateRangePicker view header view of month view.

Defaults to null.

Using a SfDateRangePickerTheme gives more fine-grained control over the appearance of various components of the date range picker.

See also:

  • backgroundColor, which fills the background of the week number view in the date range picker.
Widget build(BuildContext context) {
  return Scaffold(
  body: SfDateRangePicker(
    view: DateRangePickerView.month,
    monthViewSettings: const DateRangePickerMonthViewSettings(
    showWeekNumber: true,
    weekNumberStyle: const DateRangePickerWeekNumberStyle(
        textStyle: TextStyle(fontStyle: FontStyle.italic),
        backgroundColor: Colors.purple),
    ),
  ),
 );
}

Implementation

final TextStyle? textStyle;