YearCalendarStyleCustomize class
Class containing styling and configuration for TableCalendar
's content.
Constructors
- YearCalendarStyleCustomize.new({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 byTableCalendar
widget.const
Properties
- cellAlignment → AlignmentGeometry
-
Alignment of each individual day cell.
final
- cellMargin → EdgeInsets
-
Margin of each individual day cell.
final
- cellPadding → EdgeInsets
-
Padding of each individual day cell.
final
- defaultDecoration → Decoration
-
Decoration for day cells that do not match any other styles.
final
- defaultTextStyle → TextStyle
-
TextStyle for day cells that do not match any other styles.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDecoration → Decoration
-
Decoration for day cells that are currently marked as selected by
selectedDayPredicate
.final - selectedTextStyle → TextStyle
-
TextStyle for day cells that are currently marked as selected by
selectedDayPredicate
.final - yearCurrentlyDecoration → Decoration
-
Decoration for year currently cells.
final
- yearCurrentlyTextStyle → TextStyle
-
TextStyle for year currently cells.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited