adaptiveBrightness property

bool adaptiveBrightness
final

Whether the bar adapts its light/dark appearance to the content scrolling underneath it, like the iOS 26 system bars.

Requires an enclosing GlassContentAwareScope with the scrolling content wrapped in a GlassContentAwareContent; without one the bar keeps its ambient appearance. When the scope's contrast vote flips the verdict, the bar cross-fades between the GlassTheme light and dark variants — themed glass settings, glow palette and the default icon/label colors all swap automatically.

Defaults to false.

Implementation

final bool adaptiveBrightness;