CalendarStyle constructor
const
CalendarStyle({
- bool isTodayHighlighted = true,
- bool canMarkersOverflow = true,
- bool outsideDaysVisible = true,
- bool markersAutoAligned = true,
- double? markerSize,
- double markerSizeScale = 0.2,
- double markersAnchor = 0.7,
- double rangeHighlightScale = 1.0,
- EdgeInsets markerMargin = const EdgeInsets.symmetric(horizontal: 0.3),
- AlignmentGeometry markersAlignment = Alignment.bottomCenter,
- int markersMaxCount = 4,
- EdgeInsets cellMargin = const EdgeInsets.all(6.0),
- EdgeInsets cellPadding = const EdgeInsets.all(0),
- AlignmentGeometry cellAlignment = Alignment.center,
- PositionedOffset markersOffset = const PositionedOffset(),
- Color rangeHighlightColor = const Color(0xFFBBDDFF),
- Decoration markerDecoration = const BoxDecoration(color: const Color(0xFF263238), shape: BoxShape.circle),
- TextStyle todayTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
- Decoration todayDecoration = const BoxDecoration(color: const Color(0xFF9FA8DA), shape: BoxShape.circle),
- TextStyle selectedTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
- Decoration selectedDecoration = const BoxDecoration(color: const Color(0xFF5C6BC0), shape: BoxShape.circle),
- TextStyle rangeStartTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
- Decoration rangeStartDecoration = const BoxDecoration(color: const Color(0xFF6699FF), shape: BoxShape.circle),
- TextStyle rangeEndTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
- Decoration rangeEndDecoration = const BoxDecoration(color: const Color(0xFF6699FF), shape: BoxShape.circle),
- TextStyle withinRangeTextStyle = const TextStyle(),
- Decoration withinRangeDecoration = const BoxDecoration(shape: BoxShape.circle),
- TextStyle outsideTextStyle = const TextStyle(color: const Color(0xFFAEAEAE)),
- Decoration outsideDecoration = const BoxDecoration(shape: BoxShape.circle),
- TextStyle disabledTextStyle = const TextStyle(color: const Color(0xFFBFBFBF)),
- Decoration disabledDecoration = const BoxDecoration(shape: BoxShape.circle),
- TextStyle holidayTextStyle = const TextStyle(color: const Color(0xFF5C6BC0)),
- Decoration holidayDecoration = const BoxDecoration(border: const Border.fromBorderSide(const BorderSide(color: const Color(0xFF9FA8DA), width: 1.4)), shape: BoxShape.circle),
- TextStyle weekendTextStyle = const TextStyle(color: const Color(0xFF5A5A5A)),
- Decoration weekendDecoration = const BoxDecoration(shape: BoxShape.circle),
- TextStyle weekNumberTextStyle = const TextStyle(fontSize: 12, color: const Color(0xFFBFBFBF)),
- TextStyle defaultTextStyle = const TextStyle(),
- Decoration defaultDecoration = const BoxDecoration(shape: BoxShape.circle),
- Decoration rowDecoration = const BoxDecoration(),
- TableBorder tableBorder = const TableBorder(),
- EdgeInsets tablePadding = const EdgeInsets.all(0),
- TextFormatter? dayTextFormatter,
Creates a CalendarStyle
used by TableCalendar
widget.
Implementation
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 = const EdgeInsets.all(0),
this.cellAlignment = Alignment.center,
this.markersOffset = const PositionedOffset(),
this.rangeHighlightColor = const Color(0xFFBBDDFF),
this.markerDecoration = const BoxDecoration(
color: const Color(0xFF263238),
shape: BoxShape.circle,
),
this.todayTextStyle = const TextStyle(
color: const Color(0xFFFAFAFA),
fontSize: 16.0,
), //
this.todayDecoration = const BoxDecoration(
color: const Color(0xFF9FA8DA),
shape: BoxShape.circle,
),
this.selectedTextStyle = const TextStyle(
color: const Color(0xFFFAFAFA),
fontSize: 16.0,
),
this.selectedDecoration = const BoxDecoration(
color: const Color(0xFF5C6BC0),
shape: BoxShape.circle,
),
this.rangeStartTextStyle = const TextStyle(
color: const Color(0xFFFAFAFA),
fontSize: 16.0,
),
this.rangeStartDecoration = const BoxDecoration(
color: const Color(0xFF6699FF),
shape: BoxShape.circle,
),
this.rangeEndTextStyle = const TextStyle(
color: const Color(0xFFFAFAFA),
fontSize: 16.0,
),
this.rangeEndDecoration = const BoxDecoration(
color: const Color(0xFF6699FF),
shape: BoxShape.circle,
),
this.withinRangeTextStyle = const TextStyle(),
this.withinRangeDecoration = const BoxDecoration(shape: BoxShape.circle),
this.outsideTextStyle = const TextStyle(color: const Color(0xFFAEAEAE)),
this.outsideDecoration = const BoxDecoration(shape: BoxShape.circle),
this.disabledTextStyle = const TextStyle(color: const Color(0xFFBFBFBF)),
this.disabledDecoration = const BoxDecoration(shape: BoxShape.circle),
this.holidayTextStyle = const TextStyle(color: const Color(0xFF5C6BC0)),
this.holidayDecoration = const BoxDecoration(
border: const Border.fromBorderSide(
const BorderSide(color: const Color(0xFF9FA8DA), width: 1.4),
),
shape: BoxShape.circle,
),
this.weekendTextStyle = const TextStyle(color: const Color(0xFF5A5A5A)),
this.weekendDecoration = const BoxDecoration(shape: BoxShape.circle),
this.weekNumberTextStyle =
const TextStyle(fontSize: 12, color: const Color(0xFFBFBFBF)),
this.defaultTextStyle = const TextStyle(),
this.defaultDecoration = const BoxDecoration(shape: BoxShape.circle),
this.rowDecoration = const BoxDecoration(),
this.tableBorder = const TableBorder(),
this.tablePadding = const EdgeInsets.all(0),
this.dayTextFormatter,
});