SBBTabBarStyle class
Defines the visual properties of SBBTabBar.
Use this class in combination with SBBTabBarThemeData to customize the appearance of the tab bar throughout your app or for specific widget subtrees. Pass a SBBTabBarStyle directly to SBBTabBar to override the theme for a single instance.
See also:
- SBBTabBar, the widget that uses this style.
- SBBTabBarThemeData, which applies this style theme-wide.
Constructors
-
SBBTabBarStyle({Color? backgroundColor, WidgetStateProperty<
Color?> ? iconColor, WidgetStateProperty<Color?> ? itemBackgroundColor, TextStyle? itemLabelTextStyle, Color? itemLabelForegroundColor, IconData? warningItemIcon, Color? warningItemBackgroundColor, Color? warningItemForegroundColor, Color? badgeForegroundColor, Color? badgeBackgroundColor, TextStyle? badgeTextStyle}) -
const
Properties
- backgroundColor → Color?
-
The background color of the tab bar container.
final
- badgeBackgroundColor → Color?
-
The background color for SBBTabBarBadge widgets displayed on
tab items.
final
- badgeForegroundColor → Color?
-
The default foreground color (icon or text) for SBBTabBarBadge widgets
displayed on tab items.
final
- badgeTextStyle → TextStyle?
-
The text style for the SBBTabBarBadgeText widget displayed on tab items.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
iconColor
→ WidgetStateProperty<
Color?> ? -
The color of the tab item icon.
final
-
itemBackgroundColor
→ WidgetStateProperty<
Color?> ? -
The background color of the circular selection indicator behind a tab item.
final
- itemLabelForegroundColor → Color?
-
The foreground color for the tab item label text.
final
- itemLabelTextStyle → TextStyle?
-
The text style for the tab item label shown below the selected icon.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- warningItemBackgroundColor → Color?
-
The background color of the circular badge shown for a warning item.
final
- warningItemForegroundColor → Color?
-
The icon/text color shown inside the warning badge.
final
- warningItemIcon → IconData?
-
The icon shown on a tab item when a warning is active and not yet seen.
final
Methods
-
copyWith(
{Color? backgroundColor, WidgetStateProperty< Color?> ? iconColor, WidgetStateProperty<Color?> ? itemBackgroundColor, TextStyle? itemLabelTextStyle, Color? itemLabelForegroundColor, IconData? warningItemIcon, Color? warningItemBackgroundColor, Color? warningItemForegroundColor, Color? badgeForegroundColor, Color? badgeBackgroundColor, TextStyle? badgeTextStyle}) → SBBTabBarStyle -
merge(
SBBTabBarStyle? other) → SBBTabBarStyle -
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.
override
Static Methods
-
lerp(
SBBTabBarStyle? a, SBBTabBarStyle? b, double t) → SBBTabBarStyle?