style property
The visual style of the button.
- GlassButtonStyle.filled (default): Standard refractive glass
(
.buttonStyle(.glass)) in GlassSurfaceStyle.glass mode, or an iOStertiarySystemFillrecessed well (.buttonStyle(.bordered)) in GlassSurfaceStyle.solid mode. - GlassButtonStyle.prominent: Thicker frosted/accent glass
(
.buttonStyle(.glassProminent)) in GlassSurfaceStyle.glass mode, or an opaque accent fill (.buttonStyle(.borderedProminent), defaulting toCupertinoTheme.of(context).primaryColor) in GlassSurfaceStyle.solid mode. - GlassButtonStyle.transparent: No resting background
(
.buttonStyle(.borderless)); useful inside GlassButtonGroup or for borderless actions.
Implementation
final GlassButtonStyle style;