todayHighlightColor property
Color that highlights the today cell in SfCalendar.
Allows to change the color that highlights the today cell in month view, and view header of day/week/workweek, timeline view and highlights the date in month agenda view in SfCalendar.
Defaults to null.
Using a SfCalendarTheme
gives more fine-grained control over the
appearance of various components of the calendar.
See also:
- showCurrentTimeIndicator, to display an indicator in the current time of the day in calendar.
- todayTextStyle, to customize the today text in calendar.
SfCalendarTheme
, to handle theming with calendar for giving consistent look.- Knowledge base: How to customize the current day color
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
todayHighlightColor: Colors.red,
),
);
}
Implementation
final Color? todayHighlightColor;