RemixTab class

An individual tab button.

Inheritance

Constructors

RemixTab({Key? key, required String tabId, Widget? child, String? label, IconData? icon, bool enabled = true, MouseCursor mouseCursor = SystemMouseCursors.click, bool enableFeedback = true, FocusNode? focusNode, bool autofocus = false, ValueChanged<bool>? onFocusChange, ValueChanged<bool>? onHoverChange, ValueChanged<bool>? onPressChange, ValueWidgetBuilder<NakedTabState>? builder, String? semanticLabel, TabStyler style = const TabStyler.create(), TabSpec? styleSpec})
const

Properties

autofocus → bool
Whether this tab should automatically request focus.
final
builder → ValueWidgetBuilder<NakedTabState>?
Replaces the tab's visual content while retaining its behavior.
final
child → Widget?
Custom content placed inside the styled tab container instead of the built-in label and icon. Use builder to replace the container too.
final
enabled → bool
Whether this tab is enabled.
final
enableFeedback → bool
Whether to enable haptic feedback.
final
focusNode → FocusNode?
Optional focus node for this tab.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Optional icon to display in the tab.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Optional label text for the tab.
final
mouseCursor → MouseCursor
The mouse cursor for this tab.
final
onFocusChange → ValueChanged<bool>?
Called when focus changes.
final
onHoverChange → ValueChanged<bool>?
Called when hover changes.
final
onPressChange → ValueChanged<bool>?
Called when press state changes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Semantic label for accessibility.
final
style → TabStyler
The style configuration for this tab.
final
styleSpec → TabSpec?
Optional raw style spec that bypasses fluent style resolution.
final
tabId → String
The unique identifier for this tab.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's 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
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

Static Properties

styleFrom → TabStyler Function({AnimationConfig? animation, FlexBoxStyler? container, RemixBoxEffectsMix? containerEffects, IconStyler? icon, TextStyler? label, WidgetModifierConfig? modifier, List<VariantStyle<TabSpec>>? variants})
final