monthTextStyle property
The text style for the text in the month text of month label 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:
- textAlign, which aligns the month header text in the month header view of calendar.
- monthFormat, which formats the text on the month header view of schedule view in calendar.
- SfCalendar.scheduleViewMonthHeaderBuilder, which used to set custom widget for month header view of schedule view in calendar.
- Knowledge base: How to customize day, week, month header of schedule view
- Knowledge base: How to customize schedule view month header with builder
- 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(
monthHeaderSettings: MonthHeaderSettings(
monthTextStyle: TextStyle(
color: Colors.black,
fontSize: 20,
fontWeight: FontWeight.w400,))),
),
);
}
Implementation
final TextStyle? monthTextStyle;