todayTextStyle property

TextStyle? todayTextStyle
final

The text style for the today text in SfCalendar.

Defaults to null.

Note: The todayHighlightColor will be set to the day text in the view headers, agenda and schedule view of SfCalendar.

The font size property will be applied from the text style properties of view headers, agenda view and schedule views of SfCalendar.

Eg: For today in view header, the font size will be applied from the viewHeaderStyle.dayTextStyle property.

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

See also:

  • todayHighlightColor, to customize the highlighting color of the today cell in calendar.
  • ViewHeaderStyle, to know about the available customization options for view header view in calendar.
  • ScheduleViewSettings, to know about the available customization options for schedule view in calendar.
  • MonthViewSettings, to know about the available customization options for month vie win calendar.
  • To know more about the view header customization refer here https://help.syncfusion.com/flutter/calendar/headers#view-header
Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.month,
       todayTextStyle: TextStyle(fontStyle: FontStyle.italic,
                    fontSize: 17,
                   color: Colors.red),
      )
   );
 }

Implementation

final TextStyle? todayTextStyle;