GlassShadow class abstract final

Default light-mode glass shadow values, matching iOS 26 elevation.

Used by AdaptiveGlass, TabIndicator, SearchableTabIndicator, and SearchPill. Centralised here to prevent drift between the four independent shadow wrappers.

These shadows are inverse-clipped so they only appear outside the glass boundary, preventing the glass from blurring its own shadow.

Usage

// Use the defaults
GlassShadow.defaults

// Scale the defaults
GlassShadow.scaled(1.5) // 50% stronger

// Disable shadows
GlassShadow.scaled(0.0) // empty list

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

Static Methods

scaled(double elevation) List<BoxShadow>
Returns the default shadows scaled by elevation.

Constants

contact → const BoxShadow
The default contact shadow (≈2% black, 2px blur, 1px y-offset).
defaults → const List<BoxShadow>
The unscaled default shadow list: elevation + contact.
elevation → const BoxShadow
The default elevation shadow (≈6% black, 8px blur, 2px y-offset).