dateTextStyle property
The text style for the date text in the day label of 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:
- dayTextStyle, which used to customize the text style for the day text in the day header of schedule view in calendar.
- dayFormat, which used to format the day text in the day header view of schedule view in calendar.
- width, which is the size for the week header view of schedule view of calendar.
- Knowledge base: How to customize day, week, month header of 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(
dayHeaderSettings: DayHeaderSettings(
dateTextStyle: TextStyle(
fontSize: 10,
fontWeight: FontWeight.w300,
color: Colors.white,
),
)),
),
);
}
Implementation
final TextStyle? dateTextStyle;