appointmentTextStyle property Null safety

TextStyle appointmentTextStyle
final

The text style for the text in the Appointment view in SfCalendar.

Defaults to null.

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

Note: This style doesn't apply for the appointment's in the agenda view of month view, for agenda view appointments styling can be achieved by using the MonthViewSettings.agendaStyle.appointmentTextStyle.

See also: AgendaStyle.


Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.workWeek,
       appointmentTextStyle: TextStyle(
               fontSize: 12,
               fontWeight: FontWeight.w500,
               color: Colors.blue,
               fontStyle: FontStyle.italic)
     ),
   );
 }

Implementation

final TextStyle appointmentTextStyle;