showWeekNumber property Null safety

bool showWeekNumber
final

Used to displays the week number of the year in the month view of the SfDateRangePicker.

In the month view, it is displayed at the the left side of the month view as a separate column in the DateRangePicker.

Defaults to false

see also:

  • weekNumberStyle, which used to customize the week number view of the month view in the date range picker.
  • numberOfWeeksInView, which allows to customize the displaying week count in month view of date range picker.
  • firstDayOfWeek, which used to customize the start day of the week in month view of date range picker.
Widget build(BuildContext context) {
  return Scaffold(
    body: SfDateRangePicker(
      view: DateRangePickerView.month,
      monthViewSettings: const DateRangePickerMonthViewSettings(
      showWeekNumber: true,
      ),
     ),
   );
 }

Implementation

final bool showWeekNumber;