visibleResourceCount property
The number of resources to be displayed in the available screen height in SfCalendar
See also:
- CalendarResource, the object which holds the data for the resource in the calendar
- CalendarDataSource.resources, which set and handle the resource collection for the calendar.
- Knowledge base: How to customize the resource view
- Knowledge base: How to add resources
@override
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.timelineMonth,
dataSource: _getCalendarDataSource(),
resourceViewSettings: ResourceViewSettings(
visibleResourceCount: 4,
),
);
}
}
Implementation
final int visibleResourceCount;