backgroundColor property
The background color to fill the background of the SfCalendar.
Defaults to null.
Using a SfCalendarTheme
gives more fine-grained control over the
appearance of various components of the calendar.
See also:
- cellBorderColor, will fill the cell border of the calendar.
SfCalendarTheme
, to handle theming with calendar for giving consistent look.- Knowledge base: How to add an image as background
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.week,
backgroundColor: Colors.transparent,
),
);
}
Implementation
final Color? backgroundColor;