showAvatar property
Shows a circle that represents a user.
Typically used with a user's profile image, or, in the absence of such an image, the user's initials. A given user's initials should always be paired with the same color, for consistency.
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,
showAvatar: false,
displayNameTextStyle: TextStyle(
fontStyle: FontStyle.italic,
fontSize: 15,
fontWeight: FontWeight.w400)),
),
);
}
}
Implementation
final bool showAvatar;