surfaceStyle property
Whether the sheet's surface is glass or opaque.
GlassSurfaceStyle.glass, the default, is glass that becomes opaque toward the large detent, as fillThreshold, fillTransition and the per-state settings describe.
GlassSurfaceStyle.solid is opaque at every detent and at every moment,
including while it is dragged, slides in or out, or resizes to fit its
content. It is filled with expandedColor, or expandedDarkColor in
dark mode. fillThreshold, fillTransition, peekSettings,
halfSettings and fullSettings do not change the surface, and the
surface shows no touch glow or saturation pulse. Glass controls inside
the sheet still receive settings. A solid sheet also publishes
InheritedGlassSurfaceStyle with GlassSurfaceStyle.solid to its
content. Widgets that read it then behave as they do inside a solid
card: buttons, chips and inputs that leave their own surfaceStyle
unset render solid, and list tiles, reorderable lists and disclosure
groups take their solid-card styling.
A sheet presented with morphFrom morphs as a large sheet does: the
droplet starts as glass, and the opaque fill fades in as it grows.
The sheet's shape, margins and detents do not change.
Implementation
final GlassSurfaceStyle surfaceStyle;