labelColor property
final
The color of selected tab labels.
If null, then TabBarTheme.labelColor is used. If that is also null and ThemeData.useMaterial3 is true, ColorScheme.primary will be used, otherwise the color of the ThemeData.primaryTextTheme's TextTheme.bodyLarge text color is used.
If labelColor (or, if null, TabBarTheme.labelColor) is a MaterialStateColor, then the effective tab color will depend on the MaterialState.selected state, i.e. if the Tab is selected or not, ignoring unselectedLabelColor even if it's non-null.
When this color or the TabBarTheme.labelColor is specified, it overrides the TextStyle.color specified for the labelStyle or the TabBarTheme.labelStyle.
See also:
- unselectedLabelColor, for color of unselected tab labels.
Implementation
final Color? labelColor;