numberOfDaysInView property
The number of days count in week in the SfCalendar.
Allows to customize the days count is applicable when calendar view is CalendarView.day, CalendarView.week, CalendarView.workWeek, CalendarView.timelineDay, CalendarView.timelineWeek and CalendarView.timelineWorkWeek in calendar.
Defaults to -1
.
The calendar supports customizing the day count only for valid values. It ranges from 1 to 7 and shows default behavior for invalid values.
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
numberOfDaysInView: 3,
),
);
}
Implementation
final int numberOfDaysInView;