surfaceTintColor property

Color? surfaceTintColor
final

The color used as an overlay on color to indicate elevation.

This is not recommended for use. Material 3 spec introduced a set of tone-based surfaces and surface containers in its ColorScheme, which provide more flexibility. The intention is to eventually remove surface tint color from the framework.

If this is null, no overlay will be applied. Otherwise this color will be composited on top of color with an opacity related to elevation and used to paint the background of the card.

The default is Colors.transparent.

See Material.surfaceTintColor for more details on how this overlay is applied.

Implementation

final Color? surfaceTintColor;