ComicTabBar class

Tabs between views: one trough at the control corner and a field's height, with no dividers, the chosen tab a thumb (the trough's outline moved in by its rim and 2 px) that slides. On a phone every tab takes one width across the bar; from 600 up each keeps to its words and the bar stands at the start. It scrolls sideways when the tabs need more room than the row has.

ComicTabBar(tabs: ['All', 'Saved'], selectedIndex: 0, onChanged: select)
Inheritance

Constructors

ComicTabBar({Key? key, required List<String> tabs, int selectedIndex = 0, ValueChanged<int>? onChanged, String? label})
Creates a tab bar, distinct from the app's destination navigation.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
Overrides the localized group name.
final
onChanged → ValueChanged<int>?
Selects a view; absent means disabled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex → int
Current tab position.
final
tabs → List<String>
Tab labels in reading order.
final

Methods

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