surfaceStyle property
How the badge surface is rendered.
When null (the default), inherits from the nearest ancestor
InheritedGlassSurfaceStyle (such as a solid GlassContainer.card,
GlassGroupedSection, or GlassModalSheet), falling back to
GlassSurfaceStyle.glass.
- GlassSurfaceStyle.glass: Wraps the badge in an AdaptiveLiquidGlassLayer with a translucent rim border and soft tinted shadow.
- GlassSurfaceStyle.solid: Renders a flat, native iOS pill or status dot with zero shader, backdrop-filter, or glass-layer overhead (no border or shadow). settings and quality have no effect in this mode.
Implementation
final GlassSurfaceStyle? surfaceStyle;