TermosTabBar class

Top, horizontally scrollable tab strip with a glow indicator that tracks the active TabController (including swipe progress on a TabBarView).

Tabs are sized to their own label widths (variable-width, not equal-flex). When the combined tab width exceeds the available viewport, the strip becomes horizontally scrollable and animates the active tab into view.

Visuals come from TermosThemeData.tabBar (effects) and TermosThemeData.metrics (layout). Heavy effects (dot grid, glow halo) follow TermosThemeData.heavyEffectsEnabled unless overridden via heavyEffectsEnabled on the widget.

A TabController must be available — pass one explicitly via controller, or rely on a DefaultTabController ancestor.

Inheritance

Constructors

TermosTabBar({Key? key, required List<TermosTabBarItem> items, TabController? controller, ValueChanged<int>? onTabChanged, double? height, bool? heavyEffectsEnabled})
const

Properties

controller → TabController?
Optional override; falls back to DefaultTabController.of when null.
final
hashCode → int
The hash code for this object.
no setterinherited
heavyEffectsEnabled → bool?
Per-instance override of TermosThemeData.heavyEffectsEnabled.
final
height → double?
Override TermosMetrics.tabBarStripHeight.
final
items → List<TermosTabBarItem>
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTabChanged → ValueChanged<int>?
Called with the new index whenever the active tab changes (after the controller settles). Fires alongside any controller listeners.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<TermosTabBar>
Creates the mutable state for this widget at a given location in the tree.
override
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
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