ZetaTabBar class

Tabs are used to show different views or sections of content within the same context.

Figma: https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=229-18&node-type=canvas&m=dev

Widgetbook: https://design.zebra.com/flutter/widgetbook/index.html#/?path=components/tabs/zetatabbar/tab-bar

Inheritance
Available extensions

Constructors

ZetaTabBar({required BuildContext context, required List<ZetaTab> tabs, TabAlignment tabAlignment = TabAlignment.center, bool isScrollable = false, bool? enableFeedback, DragStartBehavior dragStartBehavior = DragStartBehavior.start, EdgeInsetsGeometry? padding, ValueChanged<int>? onTap, Key? key})
Creates a Zeta Design primary tab bar.

Properties

automaticIndicatorColorAdjustment → bool
Whether this tab bar should automatically adjust the indicatorColor.
finalinherited
controller → TabController?
This widget's selection and animation state.
finalinherited
dividerColor → Color?
The color of the divider.
finalinherited
dividerHeight → double?
The height of the divider.
finalinherited
dragStartBehavior → DragStartBehavior
Determines the way that drag start behavior is handled.
finalinherited
enableFeedback → bool?
Whether detected gestures should provide acoustic and/or haptic feedback.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
indicator → Decoration?
Defines the appearance of the selected tab indicator.
finalinherited
indicatorAnimation → TabIndicatorAnimation?
Specifies the animation behavior of the tab indicator.
finalinherited
indicatorColor → Color?
The color of the line that appears below the selected tab.
finalinherited
indicatorPadding → EdgeInsetsGeometry
The padding for the indicator.
finalinherited
indicatorSize → TabBarIndicatorSize?
Defines how the selected tab indicator's size is computed.
finalinherited
indicatorWeight → double
The thickness of the line that appears below the selected tab.
finalinherited
isScrollable → bool
Whether this tab bar can be scrolled horizontally.
finalinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelColor → Color?
The color of selected tab labels.
finalinherited
labelPadding → EdgeInsetsGeometry?
The padding added to each of the tab labels.
finalinherited
labelStyle → TextStyle?
The text style of the selected tab labels.
finalinherited
mouseCursor → MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the individual tab widgets.
finalinherited
onFocusChange → TabValueChanged<bool>?
An optional callback that's called when a Tab's focus state in the TabBar changes.
finalinherited
onHover → TabValueChanged<bool>?
An optional callback that's called when a Tab's hover state in the TabBar changes.
finalinherited
onTap → ValueChanged<int>?
An optional callback that's called when the TabBar is tapped.
finalinherited
overlayColor → WidgetStateProperty<Color?>?
Defines the ink response focus, hover, and splash colors.
finalinherited
padding → EdgeInsetsGeometry?
The amount of space by which to inset the tab bar.
finalinherited
physics → ScrollPhysics?
How the TabBar's scroll view should respond to user input.
finalinherited
preferredSize → Size
A size whose height depends on if the tabs have both icons and text.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollController → TabBarScrollController?
The TabBarScrollController for this TabBar.
finalinherited
splashBorderRadius → BorderRadius?
Defines the clipping radius of splashes that extend outside the bounds of the tab.
finalinherited
splashFactory → InteractiveInkFeatureFactory?
Creates the tab bar's InkWell splash factory, which defines the appearance of "ink" splashes that occur in response to taps.
finalinherited
tabAlignment → TabAlignment?
Specifies the horizontal alignment of the tabs within a TabBar.
finalinherited
tabHasTextAndIcon → bool
Returns whether the TabBar contains a tab with both text and icon.
no setterinherited
tabs → List<Widget>
Typically a list of two or more Tab widgets.
finalinherited
textScaler → TextScaler?
Specifies the text scaling behavior for the Tab label.
finalinherited
unselectedLabelColor → Color?
The color of unselected tab labels.
finalinherited
unselectedLabelStyle → TextStyle?
The text style of the unselected tab labels.
finalinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<TabBar>
Creates the mutable state for this widget at a given location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on all sides.
paddingBottom(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on bottom only.
paddingEnd(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on start edge only. Is affected by whether the device is LTR or RTL:
paddingHorizontal(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on start and end.
paddingStart(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on start edge only. Is affected by whether the device is LTR or RTL:
paddingTop(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on top only.
paddingVertical(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on top and bottom.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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