placeholderTextStyle property
The text style for the text in the placeholder (no event text and no selected date text) of the SfCalendar month agenda view.
See also:
- MonthViewSettings, to customize the month view of the calendar.
- ScheduleViewSettings, to customize the schedule view of the calendar.
- AgendaStyle, to customize the month agenda view of the calendar.
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.month,
monthViewSettings: const MonthViewSettings(showAgenda: true,
agendaStyle: AgendaStyle(
placeholderTextStyle:TextStyle(
color: Colors.white,
fontSize: 20,
backgroundColor:
Colors.red),)),
),
);
}
Implementation
final TextStyle placeholderTextStyle;