showWeekNumber property

bool showWeekNumber
final

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:

Widget build(BuildContext context) {
  return Scaffold(
    body: SfCalendar(
      view: CalendarView.month,
      showWeekNumber: true,
     ),
   );
 }

Implementation

final bool showWeekNumber;