GlassBottomBarTab class
Configuration for a tab in GlassBottomBar.
Each tab displays an icon and label. Optionally provide a different widget for the selected state and a glow color for the selection animation.
Icon widgets
Pass any widget as icon and activeIcon. Standard Icon widgets will automatically inherit the correct color, size, and shadow halo from the bar's IconTheme. Custom widgets (SVG, PNG, etc.) are responsible for their own tinting.
// Standard Icon — inherits color/size automatically
GlassBottomBarTab(
label: 'Home',
icon: Icon(CupertinoIcons.home),
activeIcon: Icon(CupertinoIcons.home_fill),
)
// Custom SVG — color handled by the caller
GlassBottomBarTab(
label: 'Settings',
icon: SvgPicture.asset('assets/settings.svg', colorFilter: ...),
)
Deprecated: Use GlassSegment instead.
GlassBottomBarTab is a zero-logic typedef shim.
Replace GlassBottomBarTab(icon: ..., label: ..., glowColor: ...) with
GlassSegment(icon: ..., label: ..., glowColor: ...).
- Annotations
-
- @Deprecated('Use GlassSegment instead. ' 'GlassBottomBarTab will be removed in v1.0. ' 'Migration: replace GlassBottomBarTab( with GlassSegment(.')
Constructors
Properties
- activeIcon → Widget?
-
Widget displayed when the tab is selected.
final
- glowColor → Color?
-
Color of the animated glow effect when this tab is selected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
Widget displayed when the tab is not selected.
final
- label → String?
-
Label text displayed below the icon.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
Overrides the accessibility announcement for this tab.
final
- thickness → double?
-
Thickness of the icon shadow halo effect.
final
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