Apply a semi-transparent overlay color on Material surfaces to indicate elevation for dark themes.
Material drop shadows can be difficult to see in a dark theme, so the elevation of a surface should be portrayed with an "overlay" in addition to the shadow. As the elevation of the component increases, the overlay increases in opacity. applyElevationOverlayColor turns the application of this overlay on or off.
true a semi-transparent version of
colorScheme.onSurface will be
applied on top of the color of Material widgets when their Material.color
colorScheme.surface. The level of transparency is based on
Material.elevation as per the Material Dark theme specification.
false the surface color will be used unmodified.
Note: this setting is here to maintain backwards compatibility with
apps that were built before the Material Dark theme specification
was published. New apps should set this to
true for any themes
where brightness is Brightness.dark.
final bool applyElevationOverlayColor