appointmentTextStyle property
The text style for the text in the Appointment view in SfCalendar schedule view.
Defaults to null.
Using a SfCalendarTheme
gives more fine-grained control over the
appearance of various components of the calendar.
See also:
- appointmentItemHeight, which is the size for the appointment view in the schedule view of calendar.
- SfCalendar.appointmentBuilder, which used to set custom widget for appointment view in calendar
- Knowledge base: How to customize appointment height in schedule view
- Knowledge base: How to view schedule
- Knowledge base: How to customize the schedule view
@override
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.schedule,
scheduleViewSettings: ScheduleViewSettings(
appointmentTextStyle: TextStyle(
fontSize: 12, fontWeight: FontWeight.w500,
color: Colors.red)),
),
);
}
Implementation
final TextStyle? appointmentTextStyle;