GlassScrollEdgeStyle enum
Edge effect style matching iOS 26's .scrollEdgeEffectStyle.
Controls how scroll content fades or frosts at the edges when it meets a glass surface (navigation bar, bottom bar, etc.).
Values
- blur → const GlassScrollEdgeStyle
-
A progressive, graduated blur that frosts live content under the bar.
Uses ProgressiveBlur to blur live scrolling content with a gradient sigma so high frequencies (text, sharp edges) melt into a soft frost, maintaining contrast and legibility for bar chrome while keeping content visible underneath.
This is an opt-in design enhancement beyond the system default, ideal for rich media grids, video feeds, or custom dynamic gradients.
Compositing cost: Internally uses a BackdropFilterLayer, which requires compositing on every frame the widget is visible. On Metal/Impeller this is GPU-only and cheap; on Skia/Android it carries a slightly higher overhead than soft or hard. On pages that use no other glass surfaces, soft remains a lighter alternative.
- soft → const GlassScrollEdgeStyle
-
A rounded, diffused fade — content dissolves into the backdrop.
Matches iOS 26's
.scrollEdgeEffectStyle(.soft). This is the default and recommended style for standard navigation and list views. When inside a GlassPage (or with texture capture enabled), paints a slice of the background texture; outside, falls back to a solid gradient. - hard → const GlassScrollEdgeStyle
-
A crisp boundary — content has a sharper cutoff at the bar edge.
Matches iOS 26's
.scrollEdgeEffectStyle(.hard). Uses a 50% tighter transition zone with a steep opacity curve, ideal for dense settings lists, tabular data, and utility screens.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
values
→ const List<
GlassScrollEdgeStyle> - A constant List of the values in this enum, in order of their declaration.