TabIndicatorState class
State for TabIndicator. Public for testing via @visibleForTesting.
- Inheritance
-
- Object
- State<
TabIndicator> - TabIndicatorState
- Mixed-in types
- Annotations
Constructors
Properties
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabCount → int
-
Total number of tabs.
no setteroverride
- tabIndex → int
-
Index of the currently selected tab.
no setteroverride
- tabIsDown ↔ bool
-
True while the pointer is physically held down.
getter/setter pairinherited
- tabIsDragging ↔ bool
-
True while a horizontal drag gesture is in progress.
getter/setter pairinherited
- tabXAlign ↔ double
-
Current horizontal alignment of the indicator in the range
-1, 1.getter/setter pairinherited - widget → TabIndicator
-
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
alignmentFromGlobal(
Offset globalPosition) → double -
Maps a global pointer position to alignment in
-1, 1with rubber-band resistance applied at the edges.inherited -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
computeTabAlignment(
int index) → double -
Maps a tab index to horizontal alignment in
-1, 1.inherited -
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant TabIndicator oldWidget) → void -
Called whenever the widget configuration changes.
override
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
inherited
-
initState(
) → void -
Called when this object is inserted into the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyTabChanged(
int index) → void -
Called once per gesture lifecycle when the active tab should change.
override
-
onBarDragCancel(
) → void -
onHorizontalDragCancel— snap to nearest tab without velocity.inherited -
onBarDragDown(
DragDownDetails d) → void -
onHorizontalDragDown— marks pointer as pressed for jelly activation.inherited -
onBarDragEnd(
DragEndDetails d) → void -
onHorizontalDragEnd— snap to target tab with velocity fling support.inherited -
onBarDragStart(
DragStartDetails d) → void -
onHorizontalDragStart— drag confirmed; lock position to pointer.inherited -
onBarDragUpdate(
DragUpdateDetails d) → void -
onHorizontalDragUpdate— track pointer during drag.inherited -
onBarTapDown(
TapDownDetails d) → void -
onTapDown— selects tab on tap, including repeat-tap on the active tab.inherited -
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
updateTabAlignIfNeeded(
int oldTabIndex, int oldTabCount) → void -
Call from didUpdateWidget when tabIndex or tabCount may have changed.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited