CalendarStyle class
Defines the visual styling for the calendar widget.
All parameters are optional with sensible defaults. Customize only the aspects you want to change from the default appearance.
Example:
CalendarStyle(
todayDecoration: BoxDecoration(
color: Colors.green,
shape: BoxShape.circle,
),
selectedDayTextStyle: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
),
)
Constructors
- CalendarStyle({BoxDecoration? todayDecoration, BoxDecoration? selectedDecoration, TextStyle? dayTextStyle, TextStyle? selectedDayTextStyle, TextStyle? todayTextStyle, TextStyle? headerTextStyle, TextStyle? comboboxTextStyle, TextStyle? formatTextStyle, TextStyle? weekdayTextStyle})
- Creates a calendar style with optional custom styling.
Properties
- comboboxTextStyle → TextStyle?
-
Text style for month/year dropdown text
final
- dayTextStyle → TextStyle?
-
Text style for normal day numbers
final
- formatTextStyle → TextStyle?
-
Text style for format dropdown text
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerTextStyle → TextStyle?
-
Text style for the month/year header text
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDayTextStyle → TextStyle?
-
Text style for the selected day number
final
- selectedDecoration → BoxDecoration
-
Decoration for the selected date cell
final
- todayDecoration → BoxDecoration
-
Decoration for today's date cell
final
- todayTextStyle → TextStyle?
-
Text style for today's day number
final
- weekdayTextStyle → TextStyle?
-
Text style for weekday headers (M, T, W, etc.)
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