clipExpansion property

EdgeInsets clipExpansion
final

Extra space (logical pixels) to inflate the RepaintBoundary paint bounds in all four directions, forwarded to LiquidGlass.withOwnLayer.

Set this when an ancestor Transform.scale (e.g. LiquidStretch) can push glass pixels outside the original layout bounds, producing a hard clip at the layer edge. A value of EdgeInsets.all(12) handles the default 5% press scale for buttons up to 480 px in any dimension.

Ignored for grouped glass (no own-layer, no own RepaintBoundary). Defaults to EdgeInsets.zero — no extra GPU cost at rest.

Implementation

final EdgeInsets clipExpansion;