textStyle property Null safety

TextStyle? textStyle
final

The text style to customize week number text of the SfCalendar.

Defaults to null.

Using a SfCalendarTheme gives more fine-grained control over the appearance of various components of the calendar.

See also:

  • backgroundColor, which used to fill the background of the weeknumber panel in the calendar.
Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.month,
       showWeekNumber: true,
       weekNumberStyle: WeekNumberStyle(
           backgroundColor: Colors.blue,
           textStyle: TextStyle(color: Colors.grey, fontSize: 20),
     ),
   );
 }

Implementation

final TextStyle? textStyle;