surfaceTintColor property
final
The color used as a surface tint overlay on the drawer's background color, which reflects the drawer's 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.
To disable this feature, set surfaceTintColor to Colors.transparent.
Defaults to Colors.transparent.
See also:
- Material.surfaceTintColor, which describes how the surface tint will be applied to the background color of the drawer.
- elevation, which affects the opacity of the surface tint.
- shadowColor, which can be used to indicate elevation through a drop shadow.
Implementation
final Color? surfaceTintColor;