showWeekNumber property
Used to display the week number of the year in all calendar views except schedule view of the SfCalendar.
In the month view, it is displayed at the left side as a separate column. whereas in the week and work week view it is displayed beside the view header panel, and for day and timeline views it is displayed next to the header text in the header panel of the calendar.
Defaults to false
see also:
- weekNumberStyle, to customize the week number view in the calendar.
- firstDayOfWeek, to change the first day of the week in the calendar.
Widget build(BuildContext context) {
return Scaffold(
body: SfCalendar(
view: CalendarView.month,
showWeekNumber: true,
),
);
}
Implementation
final bool showWeekNumber;