labelStyle property

TextStyle? labelStyle
final

Default TabBar parameter

The text style of the selected tab labels.

This does not influence color of the tab labels even if TextStyle.color is non-null. Refer labelColor to color selected tab labels instead.

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

If this property is 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;