unselectedLabelColor property

Color? unselectedLabelColor
final

The color of unselected tab labels.

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

If null, then TabBarThemeData.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.

When this color or the TabBarThemeData.unselectedLabelColor is specified, it overrides the TextStyle.color specified for the unselectedLabelStyle or the TabBarThemeData.unselectedLabelStyle.

See also:

Implementation

final Color? unselectedLabelColor;