CalendarScheme class
Represents customizable sizes for the Calendar picker.
On small screens (≤ 420px) each size is capped by its compact*
counterpart so the seven-day grid always fits the viewport; smaller themed
values are kept.
Example
LightThemeData(
component: ComponentScheme(
calendar: CalendarScheme(cellSize: Dim.px(36), dateFontSize: Dim.px(13)),
),
)
Constructors
- CalendarScheme({Dim? cellSize, Dim? dateFontSize, Dim? weekdayFontSize, Dim? weekdayGap, Dim? titleFontSize, Dim? stepperWidth, Dim? stepperHeight, Dim? stepperFontSize, Dim? compactCellSize, Dim? compactDateFontSize, Dim? compactWeekdayFontSize, Dim? compactWeekdayGap, Dim? compactTitleFontSize, Dim? compactStepperHeight, Dim? compactStepperFontSize})
-
const
Properties
- cellSize → Dim?
-
Day cell width and height (default:
42px).final - compactCellSize → Dim?
-
Small-screen cap for cellSize (default: fits 7 columns, min
28px).final - compactDateFontSize → Dim?
-
Small-screen cap for dateFontSize (default:
13px).final - compactStepperFontSize → Dim?
-
Small-screen cap for stepperFontSize (default:
16px).final - compactStepperHeight → Dim?
-
Small-screen cap for stepperHeight (default:
40px).final - compactTitleFontSize → Dim?
-
Small-screen cap for titleFontSize (default:
15px).final - compactWeekdayFontSize → Dim?
-
Small-screen cap for weekdayFontSize (default:
12px).final - compactWeekdayGap → Dim?
-
Small-screen cap for weekdayGap (default:
2px).final - dateFontSize → Dim?
-
Day number font size (default:
14px).final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stepperFontSize → Dim?
-
Time stepper font size (default:
18px).final - stepperHeight → Dim?
-
Time stepper input height (default:
50px).final - stepperWidth → Dim?
-
Time stepper width (default:
100px).final - titleFontSize → Dim?
-
Month / year title font size (default:
16px).final - weekdayFontSize → Dim?
-
Weekday header font size (default:
13px).final - weekdayGap → Dim?
-
Spacing around weekday headers (default:
5px).final
Methods
-
copyWith(
{Dim? cellSize, Dim? dateFontSize, Dim? weekdayFontSize, Dim? weekdayGap, Dim? titleFontSize, Dim? stepperWidth, Dim? stepperHeight, Dim? stepperFontSize, Dim? compactCellSize, Dim? compactDateFontSize, Dim? compactWeekdayFontSize, Dim? compactWeekdayGap, Dim? compactTitleFontSize, Dim? compactStepperHeight, Dim? compactStepperFontSize}) → CalendarScheme -
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.
override