buttonSettings property
Default glass settings for buttons inside this app bar.
When provided, all GlassButton descendants that don't specify their
own settings will inherit these. This avoids repeating the same
settings on every button in the bar.
Individual buttons can still override this with their own settings.
GlassAppBar(
buttonSettings: LiquidGlassSettings(
glassColor: Color(0x33FFFFFF),
thickness: 20,
),
leading: GlassButton(...), // uses buttonSettings
actions: [
GlassButton(
settings: myCustomSettings, // overrides buttonSettings
...
),
],
)
Implementation
final LiquidGlassSettings? buttonSettings;