placeholderTextStyle property
The text style for the text in the placeholder (no event text) of the SfCalendar schedule 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.schedule,
scheduleViewSettings: const ScheduleViewSettings(
placeholderTextStyle: TextStyle(
color: Colors.white,
fontSize: 20,
backgroundColor: Colors.red)),
),
);
}
Implementation
final TextStyle placeholderTextStyle;