unselectedLabelColor property

Color? unselectedLabelColor
final

Default TabBar parameter

The color of unselected tab labels.

If labelColor (or, if null, TabBarTheme.labelColor) is a MaterialStateColor, then the unselected tabs are rendered with that MaterialStateColor's resolved color for unselected state, even if unselectedLabelColor is non-null.

If null, then TabBarTheme.unselectedLabelColor is used. If that is also null and ThemeData.useMaterial3 is true, ColorScheme.onSurfaceVariant will be used, otherwise unselected tab labels are rendered with labelColor at 70% opacity.

The color specified in the unselectedLabelStyle and the TabBarTheme.unselectedLabelStyle are ignored in unselectedLabelColor's precedence calculation.

See also:

labelColor, for color of selected tab labels.

Implementation

final Color? unselectedLabelColor;