textStyle property

TextStyle? textStyle

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),


final TextStyle? textStyle;