YearCalendarStyleCustomize constructor

const YearCalendarStyleCustomize({
  1. EdgeInsets cellMargin = const EdgeInsets.all(6.0),
  2. EdgeInsets cellPadding = const EdgeInsets.all(0),
  3. AlignmentGeometry cellAlignment = Alignment.center,
  4. TextStyle selectedTextStyle = const TextStyle(color: colorWhite, fontSize: 15.0, fontWeight: FontWeight.w400),
  5. Decoration selectedDecoration = const BoxDecoration(color: colorPrimary, borderRadius: BorderRadius.all(Radius.circular(32))),
  6. TextStyle defaultTextStyle = const TextStyle(color: colorBlack, fontSize: 15.0, fontWeight: FontWeight.w400),
  7. Decoration defaultDecoration = const BoxDecoration(color: Colors.transparent, borderRadius: BorderRadius.all(Radius.circular(32))),
  8. TextStyle yearCurrentlyTextStyle = const TextStyle(color: colorBlack, fontSize: 15.0, fontWeight: FontWeight.w400),
  9. Decoration yearCurrentlyDecoration = const BoxDecoration(color: Colors.transparent, borderRadius: BorderRadius.all(Radius.circular(32)), 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))),
})

Creates a CalendarStyle used by TableCalendar widget.

Implementation

const YearCalendarStyleCustomize({
  this.cellMargin = const EdgeInsets.all(6.0),
  this.cellPadding = const EdgeInsets.all(0),
  this.cellAlignment = Alignment.center,
  this.selectedTextStyle = const TextStyle(
    color: colorWhite,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.selectedDecoration = const BoxDecoration(
    color: colorPrimary,
    borderRadius: BorderRadius.all(Radius.circular(32)),
  ),
  this.defaultTextStyle = const TextStyle(
    color: colorBlack,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.defaultDecoration = const BoxDecoration(
    color: Colors.transparent,
    borderRadius: BorderRadius.all(Radius.circular(32)),
  ),
  this.yearCurrentlyTextStyle = const TextStyle(
    color: colorBlack,
    fontSize: 15.0,
    fontWeight: FontWeight.w400,
  ),
  this.yearCurrentlyDecoration = const BoxDecoration(
    color: Colors.transparent,
    borderRadius: BorderRadius.all(Radius.circular(32)),
    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),
    ),
  ),
});