CalendarStyleCustomize constructor

const CalendarStyleCustomize({
  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 = colorHighLight,
  17. Decoration markerDecoration = const BoxDecoration(color: Color(0xFF263238), shape: BoxShape.circle),
  18. TextStyle todayTextStyle = const TextStyle(color: colorBlack, fontSize: 15.0, fontWeight: FontWeight.w400),
  19. Decoration todayDecoration = const BoxDecoration(color: Colors.transparent, shape: BoxShape.circle, border: Border(bottom: BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid), top: BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid), right: BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid), left: BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid))),
  20. TextStyle selectedTextStyle = const TextStyle(color: colorWhite, fontSize: 15.0, fontWeight: FontWeight.w400),
  21. Decoration selectedDecoration = const BoxDecoration(color: colorPrimary, shape: BoxShape.circle),
  22. TextStyle rangeStartTextStyle = const TextStyle(color: colorWhite, fontSize: 15.0, fontWeight: FontWeight.w400),
  23. Decoration rangeStartDecoration = const BoxDecoration(color: colorSecondary, shape: BoxShape.circle),
  24. TextStyle rangeEndTextStyle = const TextStyle(color: colorWhite, fontSize: 15.0, fontWeight: FontWeight.w400),
  25. Decoration rangeEndDecoration = const BoxDecoration(color: colorSecondary, shape: BoxShape.circle),
  26. TextStyle withinRangeTextStyle = const TextStyle(color: colorBlack, fontSize: 15.0, fontWeight: FontWeight.w400),
  27. Decoration withinRangeDecoration = const BoxDecoration(shape: BoxShape.circle),
  28. TextStyle outsideTextStyle = const TextStyle(color: colorGrey, fontSize: 15.0, fontWeight: FontWeight.w400),
  29. Decoration outsideDecoration = const BoxDecoration(shape: BoxShape.circle),
  30. TextStyle disabledTextStyle = const TextStyle(color: Color(0xFFBFBFBF)),
  31. Decoration disabledDecoration = const BoxDecoration(shape: BoxShape.circle),
  32. TextStyle holidayTextStyle = const TextStyle(color: Color(0xFF5C6BC0)),
  33. Decoration holidayDecoration = const BoxDecoration(border: Border.fromBorderSide(BorderSide(color: Color(0xFF9FA8DA), width: 1.4)), shape: BoxShape.circle),
  34. TextStyle weekendTextStyle = const TextStyle(color: colorBlack, fontSize: 15.0, fontWeight: FontWeight.w400),
  35. Decoration weekendDecoration = const BoxDecoration(shape: BoxShape.circle),
  36. TextStyle weekNumberTextStyle = const TextStyle(fontSize: 12, color: Color(0xFFBFBFBF)),
  37. TextStyle defaultTextStyle = const TextStyle(color: colorBlack, fontSize: 15.0, fontWeight: FontWeight.w400),
  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 CalendarStyleCustomize({
  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 = colorHighLight,
  this.markerDecoration = const BoxDecoration(
    color: Color(0xFF263238),
    shape: BoxShape.circle,
  ),
  this.todayTextStyle = const TextStyle(
    color: colorBlack,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ), //
  this.todayDecoration = const BoxDecoration(
    color: Colors.transparent,
    shape: BoxShape.circle,
    border: Border(
      bottom:
          BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid),
      top:
          BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid),
      right:
          BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid),
      left:
          BorderSide(width: 1.0, color: colorPrimary, style: BorderStyle.solid),
    ),
  ),
  this.selectedTextStyle = const TextStyle(
    color: colorWhite,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.selectedDecoration = const BoxDecoration(
    color: colorPrimary,
    shape: BoxShape.circle,
  ),
  this.rangeStartTextStyle = const TextStyle(
    color: colorWhite,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.rangeStartDecoration = const BoxDecoration(
    color: colorSecondary,
    shape: BoxShape.circle,
  ),
  this.rangeEndTextStyle = const TextStyle(
    color: colorWhite,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.rangeEndDecoration = const BoxDecoration(
    color: colorSecondary,
    shape: BoxShape.circle,
  ),
  this.withinRangeTextStyle = const TextStyle(
    color: colorBlack,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.withinRangeDecoration = const BoxDecoration(shape: BoxShape.circle),
  this.outsideTextStyle = const TextStyle(
    color: colorGrey,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.outsideDecoration = const BoxDecoration(shape: BoxShape.circle),
  this.disabledTextStyle = const TextStyle(color: Color(0xFFBFBFBF)),
  this.disabledDecoration = const BoxDecoration(shape: BoxShape.circle),
  this.holidayTextStyle = const TextStyle(color: Color(0xFF5C6BC0)),
  this.holidayDecoration = const BoxDecoration(
    border: Border.fromBorderSide(
      BorderSide(color: Color(0xFF9FA8DA), width: 1.4),
    ),
    shape: BoxShape.circle,
  ),
  this.weekendTextStyle = const TextStyle(
    color: colorBlack,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.weekendDecoration = const BoxDecoration(shape: BoxShape.circle),
  this.weekNumberTextStyle =
      const TextStyle(fontSize: 12, color: Color(0xFFBFBFBF)),
  this.defaultTextStyle = const TextStyle(
    color: colorBlack,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.defaultDecoration = const BoxDecoration(shape: BoxShape.circle),
  this.rowDecoration = const BoxDecoration(),
  this.tableBorder = const TableBorder(),
  this.tablePadding = const EdgeInsets.all(0),
});