The CalendarStyle class is used to customize the visual appearance of the TableCalendar widget. It allows you to define styles (text and decoration) for various states of day cells, such as being selected, being the current day, being a holiday, or being part of a range selection. It also controls the appearance of event markers and the overall table layout.
const CalendarStyle({
this.isTodayHighlighted = true,
this.canMarkersOverflow = true,
this.outsideDaysVisible = true,
this.markersAutoAligned = true,
this.markerSize,
this.markerSizeScale = 0.2,
this.markersAnchor = 0.7,
this.rangeHighlightScale = 1.0,
this.markerMargin = const EdgeInsets.symmetric(horizontal: 0.3),
this.markersAlignment = Alignment.bottomCenter,
this.markersMaxCount = 4,
this.cellMargin = const EdgeInsets.all(6.0),
this.cellPadding = EdgeInsets.zero,
this.cellAlignment = Alignment.center,
this.markersOffset = const PositionedOffset(),
this.rangeHighlightColor = const Color(0xFFBBDDFF),
this.markerDecoration = const BoxDecoration(
color: Color(0xFF263238),
shape: BoxShape.circle,
),
// ... other properties
});