LiquidGlassRenderer class abstract
Draws the background of a glass surface for one LiquidGlassTier.
Register extra renderers (for example a liquid adapter) through
LiquidGlassPolicy.renderers.
- Annotations
Constructors
- LiquidGlassRenderer()
-
Const constructor for subclasses.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tier → LiquidGlassTier
-
The tier this renderer draws.
no setter
Methods
-
buildBackground(
BuildContext context, LiquidGlassSpec spec) → Widget - The background layer only (blur, tint, rim, shadow), sized to fill its parent. Must not paint outside the shape except for a shadow.
-
isSupported(
BuildContext context) → bool - Whether this renderer can draw on this device right now.
-
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