surfaceStyle property
How the button's surface is painted.
If null (the default), inherits from the nearest ancestor
InheritedGlassSurfaceStyle (such as a solid GlassContainer.card or
GlassGroupedSection), falling back to GlassSurfaceStyle.glass.
- GlassSurfaceStyle.glass: Renders refractive liquid glass via AdaptiveGlass and GlassGlow (optionally tinted with tintColor).
- GlassSurfaceStyle.solid: Bypasses AdaptiveGlass, GlassGlow, and
backdrop filters completely (zero shader cost) while keeping tactile
LiquidStretchpress inflation, hover/focus highlights, keyboard activation, andGlassMaterializetransitions.
Implementation
final GlassSurfaceStyle? surfaceStyle;