vibrancy static method
Widget
vibrancy({
- required LiquidShape shape,
- required LiquidGlassSettings settings,
- required Widget child,
Static helper that renders an iOS 26 vibrancy fill for nested glass.
Returns a _VibrancyFill: a translucent tinted surface with specular rim
but no BackdropFilter. Used when InheritedLiquidGlass.avoidsRefraction
is true (set by GlassContainer) to prevent recursive compositor reads
that cause Impeller GPU tile-memory stalls and missing surfaces.
This matches the UIKit model: a UIVibrancyEffect nested inside a
UIVisualEffectView never performs a second backdrop read.
Implementation
static Widget vibrancy({
required LiquidShape shape,
required LiquidGlassSettings settings,
required Widget child,
}) {
return _VibrancyFill(
shape: shape,
settings: settings,
child: child,
);
}