labelStyle property

TextStyle? labelStyle
final

The text style of the selected tab labels.

The color specified in labelStyle and TabBarTheme.labelStyle is used to style the label when labelColor or TabBarTheme.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 TabBarTheme.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;