labelStyle property

TextStyle? labelStyle
final

The text style of the selected tab labels.

The color specified in labelStyle and TabBarThemeData.labelStyle is used to style the label when labelColor or TabBarThemeData.labelColor are not specified.

If unselectedLabelStyle is null, then this text style will be used for both selected and unselected label styles.

If this property is null, then TabBarThemeData.labelStyle will be used.

If that is also null and ThemeData.useMaterial3 is true, TextTheme.titleSmall will be used, otherwise the text style of the ThemeData.primaryTextTheme's TextTheme.bodyLarge definition is used.

Implementation

final TextStyle? labelStyle;