contentAwareBrightness property
Whether to install a GlassContentAwareScope around the scaffold's body and bars.
When true, the scaffold wraps the body in GlassContentAwareContent
and the entire Stack in GlassContentAwareScope. This enables bars
with adaptiveBrightness: true to sample the body content and
automatically flip between light and dark appearance.
The standalone GlassContentAwareScope and GlassContentAwareContent
widgets remain available for custom layouts that don't use
GlassScaffold.
GlassScaffold(
contentAwareBrightness: true,
bottomBar: GlassBottomBar(
adaptiveBrightness: true,
...
),
body: CustomScrollView(...),
)
Implementation
final bool contentAwareBrightness;