appointmentTextStyle property
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, to customize the agenda view of month view in calendar.
- dataSource, to set and handle the appointments for calendar.
- appointmentBuilder, to set an custom widget for the appointment UI.
- Appointment, to know more about the appointment and it's properties in calendar.
- appointmentTimeTextFormat, to customize the time text format in the appointment view of calendar.
- Knowledge base: How to style appointments
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;