tabBarStyle property

FlexTabBarStyle? tabBarStyle
final

Select preferred style for the default TabBarTheme.

By default the TabBarTheme is made to fit with the style of the AppBar. In M2 mode that is done by defaulting to using FlexTabBarStyle.forAppBar if not defined. In M3 mode it done by defaulting to using FlexTabBarStyle.flutterDefault.

When setting this to FlexTabBarStyle.forBackground, it will default to a theme that uses the color scheme and fits on background color, which typically also on works surface and scaffoldBackground color. This TabBarTheme style is useful if you primarily intended to use the TabBar in a Scaffold, Dialog, Drawer or Side panel on their background colors.

Implementation

final FlexTabBarStyle? tabBarStyle;