GlassDefaults class

Default values for glass visual properties.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

ambientBaseLight → const double
Even surface brightening of a pressed button in light mode — measured at about +15 luma against a native iOS 26 press (0.3)
ambientBaseLightDark → const double
Dark-mode counterpart: the darker resting surface needs half the overlay for the same read. Estimated pending a native dark-mode capture (0.14)
ambientLiftDuration → const Duration
The pressed lift ramps over the press inflation (150 ms)
ambientLiftReverseDuration → const Duration
...and collapses on release (60 ms)
animationDuration → const Duration
Standard animation duration for glass effects (200ms)
animationDurationFast → const Duration
Fast animation duration for quick transitions (100ms)
animationDurationSlow → const Duration
Slow animation duration for deliberate effects (300ms)
barrierColor → const Color
Barrier colour for modal overlays (sheets, action sheets). iOS 26 uses 54% black to dim content behind modals.
blur → const double
Default blur amount for glass effects (3.0)
borderRadius → const double
Standard border radius for most glass widgets (16.0)
borderRadiusLarge → const double
Large border radius for prominent elements (20.0)
borderRadiusSmall → const double
Small border radius for compact elements (8.0)
capsuleRadius → const double
Sentinel radius that produces a perfect capsule (stadium) shape at any widget height.
chromaticAberration → const double
Default chromatic aberration amount (0.5)
dematerializeDuration → const Duration
Exit duration of the materialize glass transition (350ms).
heightButton → const double
Standard height for buttons (48.0)
heightControl → const double
Standard height for interactive controls (32.0)
heightInput → const double
Standard height for input fields (48.0)
lightAngle → const double
Default light angle in radians (135° = 0.75 * π — Apple iOS 26 standard, upper-left light)
lightIntensity → const double
Default light intensity for specular highlights (2.0)
materializeDuration → const Duration
Entrance duration of the materialize glass transition (250ms).
paddingCard → const EdgeInsets
Standard padding for card-like widgets
paddingCompact → const EdgeInsets
Compact padding for small elements
paddingInput → const EdgeInsets
Standard padding for input fields
paddingMinimal → const EdgeInsets
Minimal padding for tight layouts
paddingPanel → const EdgeInsets
Standard padding for panel-like widgets
refractiveIndex → const double
Default refractive index for glass (1.15)
specularDarkAlpha → const double
Specular tint applied to drag handles and pill surfaces (dark mode).
specularLightAlpha → const double
Specular tint applied to drag handles and pill surfaces (light mode).
thickness → const double
Default glass thickness for most widgets (30.0)