displayNameTextStyle property

TextStyle? displayNameTextStyle
final

The text style for the text in the CalendarResource view of SfCalendar.

Defaults to null.

Using a SfCalendarTheme gives more fine-grained control over the appearance of various components of the calendar.

See also:

@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 TextStyle? displayNameTextStyle;