dayTextStyle property
The text style for the day text in the SfCalendar view header view.
Defaults to null.
Using a SfCalendarTheme
gives more fine-grained control over the
appearance of various components of the calendar.
See also:
- dateTextStyle, which used to customize the text style of the date text in the view header view.
- backgroundColor, which fills the background of the view header view in calendar.
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
viewHeaderStyle: ViewHeaderStyle(
backgroundColor: Colors.blue,
dayTextStyle: TextStyle(color: Colors.grey, fontSize: 20),
dateTextStyle: TextStyle(color: Colors.grey, fontSize: 25)),
),
);
}
Implementation
final TextStyle? dayTextStyle;