FlexTabBarStyle enum

Enum to select TabBarTheme preference in FlexColorScheme based themes.

Inheritance

Constructors

FlexTabBarStyle()
const

Values

forAppBar → const FlexTabBarStyle

Themed to fit with active FlexAppBarStyle and AppBarTheme.

Indicator, text and icons contrast well with AppBar background color, regardless of chosen FlexAppBarStyle.

This is the default style for FlexColorScheme based themes and typically the style you want.

forBackground → const FlexTabBarStyle

Themed to fit with current background and surface colors.

Indicator, text and icons contrast with background and surface colors via primary color.

If you intend to use your TabBar's only on surfaces, like Scaffold or in cards using default theme background color, then use this style. If you use an AppBar theme that is surface colored in both light and dark theme, then this style will also work well when the TabBar is used in the AppBar, as well as on surfaces.

flutterDefault → const FlexTabBarStyle

Make a TabBarTheme sub-theme that equals the style you get with ThemeData.from constructor and Widget default values in Flutter SDK.

This works well with default primary colored AppBar's in light theme and dark surface colored AppBars or other dark surfaces in dark theme. It does not work with all app bar styles supported by FlexColorScheme, prefer using forAppBar for that.

universal → const FlexTabBarStyle

An experimental TabBarTheme mode that works on both primary and background colors.

This theme is more low contrast than the themes explicitly designed for their target surface. Use with caution, with some combinations the style may have poor contrast and look disabled.

WARNING: This feature is experimental and its resulting style might be modified to improve it in future versions. Changes to the produced style will not be considered breaking, only as a fix.

Prefer using forAppBar or forBackground depending on where you primarily intend to use your tab bars.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<FlexTabBarStyle>
A constant List of the values in this enum, in order of their declaration.