size property
The size of the resource view panel in timeline views of SfCalendar.
Defaults to 75
.
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.
- SfCalendar.resourceViewHeaderBuilder, which allows to set custom widget for the resource view header.in 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,
size: 150,
displayNameTextStyle: TextStyle(
fontStyle: FontStyle.italic,
fontSize: 15,
fontWeight: FontWeight.w400)),
),
);
}
}
Implementation
final double size;