GlassThemeHelpers class
Helper functions for working with Glass Theme.
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
-
nativeStyleQuality(
BuildContext context) → GlassQuality - The widget-class default quality for hero surfaces (transient overlays and interactive lifted lenses): GlassQuality.premium on the native GlassStyle.ios27 / GlassStyle.ios26 styles, whose paraxial lens, frost and rim light only exist in the full shader, and GlassQuality.standard on GlassStyle.classic, which keeps its v1.x rendering.
-
of(
BuildContext context) → GlassThemeData - Retrieves the theme data from the widget tree.
-
resolveAdaptiveRadius(
BuildContext context) → double - Resolves an adaptive border radius based on the device's physical geometry.
-
resolveQuality(
BuildContext context, {GlassQuality? widgetQuality, GlassQuality fallback = GlassQuality.standard}) → GlassQuality - Resolves the effective GlassQuality for a widget.
-
resolveSettings(
BuildContext context, {LiquidGlassSettings? explicit, LiquidGlassSettings fallback = const LiquidGlassSettings(), bool isOverlayPlatter = false}) → LiquidGlassSettings - Resolves LiquidGlassSettings for a widget using the full priority chain.
-
resolveStyle(
BuildContext context) → GlassStyle - Resolves the active GlassStyle preset from the nearest GlassTheme ancestor, defaulting to GlassThemeData.fallback's style.