CalendarStyle constructor

const CalendarStyle(
  1. {bool isTodayHighlighted = true,
  2. bool canMarkersOverflow = true,
  3. bool outsideDaysVisible = true,
  4. bool markersAutoAligned = true,
  5. double? markerSize,
  6. double markerSizeScale = 0.2,
  7. double markersAnchor = 0.7,
  8. double rangeHighlightScale = 1.0,
  9. EdgeInsets markerMargin = const EdgeInsets.symmetric(horizontal: 0.3),
  10. AlignmentGeometry markersAlignment = Alignment.bottomCenter,
  11. int markersMaxCount = 4,
  12. EdgeInsets cellMargin = const EdgeInsets.all(6.0),
  13. EdgeInsets cellPadding = const EdgeInsets.all(0),
  14. AlignmentGeometry cellAlignment = Alignment.center,
  15. PositionedOffset markersOffset = const PositionedOffset(),
  16. Color rangeHighlightColor = const Color(0xFFBBDDFF),
  17. Decoration markerDecoration = const BoxDecoration(color: const Color(0xFF263238), shape: BoxShape.circle),
  18. TextStyle todayTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
  19. Decoration todayDecoration = const BoxDecoration(color: const Color(0xFF9FA8DA), shape: BoxShape.circle),
  20. TextStyle selectedTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
  21. Decoration selectedDecoration = const BoxDecoration(color: const Color(0xFF5C6BC0), shape: BoxShape.circle),
  22. TextStyle rangeStartTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
  23. Decoration rangeStartDecoration = const BoxDecoration(color: const Color(0xFF6699FF), shape: BoxShape.circle),
  24. TextStyle rangeEndTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0),
  25. Decoration rangeEndDecoration = const BoxDecoration(color: const Color(0xFF6699FF), shape: BoxShape.circle),
  26. TextStyle withinRangeTextStyle = const TextStyle(),
  27. Decoration withinRangeDecoration = const BoxDecoration(shape: BoxShape.circle),
  28. TextStyle outsideTextStyle = const TextStyle(color: const Color(0xFFAEAEAE)),
  29. Decoration outsideDecoration = const BoxDecoration(shape: BoxShape.circle),
  30. TextStyle disabledTextStyle = const TextStyle(color: const Color(0xFFBFBFBF)),
  31. Decoration disabledDecoration = const BoxDecoration(shape: BoxShape.circle),
  32. TextStyle holidayTextStyle = const TextStyle(color: const Color(0xFF5C6BC0)),
  33. Decoration holidayDecoration = const BoxDecoration(border: const Border.fromBorderSide(const BorderSide(color: const Color(0xFF9FA8DA), width: 1.4)), shape: BoxShape.circle),
  34. TextStyle weekendTextStyle = const TextStyle(color: const Color(0xFF5A5A5A)),
  35. Decoration weekendDecoration = const BoxDecoration(shape: BoxShape.circle),
  36. TextStyle weekNumberTextStyle = const TextStyle(fontSize: 12, color: const Color(0xFFBFBFBF)),
  37. TextStyle defaultTextStyle = const TextStyle(),
  38. Decoration defaultDecoration = const BoxDecoration(shape: BoxShape.circle),
  39. Decoration rowDecoration = const BoxDecoration(),
  40. TableBorder tableBorder = const TableBorder(),
  41. EdgeInsets tablePadding = const EdgeInsets.all(0)}
)

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),
});