surfaceTintColor property

MaterialStateProperty<Color?>? surfaceTintColor
final

The surface tint color of the search bar's Material.

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 null, the value of SearchBarThemeData.surfaceTintColor will be used. If this is also null, then the default value is Colors.transparent.

Implementation

final MaterialStateProperty<Color?>? surfaceTintColor;