weekNumberStyle property
Defines the text style for the text in the week number panel of the SfCalendar.
Using a SfCalendarTheme
gives more fine-grained control over the
appearance of various components of the calendar.
Defaults to false
see also:
- showWeekNumber, to display the week number view on the calendar views.
- WeekNumberStyle, to know more about the available customization options for week number view in calendar.
SfCalendarTheme
, to handle theming with calendar for giving consistent look.
Widget build(BuildContext context) {
return Scaffold(
body: SfCalendar(
view: CalendarView.month,
showWeekNumber: true,
weekNumberStyle: WeekNumberStyle(
backgroundColor: Colors.blue,
textStyle: TextStyle(color: Colors.grey, fontSize: 20),
),
);
}
Implementation
final WeekNumberStyle weekNumberStyle;