LiquidGlassWidgets class

Entry point and configuration for the Liquid Glass Widgets library.

Use this class to initialize global resources, such as precaching shaders to prevent visual glitches during first-time rendering.

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 Properties

globalSettings LiquidGlassSettings?
Global settings override for the entire application.
getter/setter pair
respectSystemAccessibility bool
Whether glass widgets should automatically respect system accessibility settings (Reduce Motion, Reduce Transparency / High Contrast).
getter/setter pair

Static Methods

initialize({bool respectSystemAccessibility = true, bool enablePerformanceMonitor = true}) Future<void>
Initializes the Liquid Glass library.
wrap(Widget child) Widget
Wraps child in a GlassBackdropScope so all glass surfaces inside automatically share a single GPU backdrop capture when multiple surfaces are visible simultaneously (e.g. a GlassAppBar + GlassBottomBar).