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