XTabBar class

Typically a list of two or more Tab widgets.

The length of this list must match the controller's TabController.length and the length of the TabBarView.children list.

Constructors

XTabBar({Key key, TabController controller, bool isScrollable, Color indicatorColor, double indicatorWeight, EdgeInsetsGeometry indicatorPadding, Decoration indicator, TabBarIndicatorSize indicatorSize, Color labelColor, Color unselectedLabelColor, TextStyle labelStyle, EdgeInsetsGeometry labelPadding, TextStyle unselectedLabelStyle, DragStartBehavior dragStartBehavior, ValueChanged<int> onTap})

Properties

controller TabController
This widget's selection and animation state. [...]
final
dragStartBehavior DragStartBehavior
Determines the way that drag start behavior is handled. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
indicator Decoration
Defines the appearance of the selected tab indicator. [...]
final
indicatorColor Color
The color of the line that appears below the selected tab. [...]
final
indicatorPadding EdgeInsetsGeometry
The horizontal padding for the line that appears below the selected tab. [...]
final
indicatorSize TabBarIndicatorSize
Defines how the selected tab indicator's size is computed. [...]
final
indicatorWeight double
The thickness of the line that appears below the selected tab. [...]
final
isScrollable bool
Whether this tab bar can be scrolled horizontally. [...]
final
key Key
final
labelColor Color
The color of selected tab labels. [...]
final
labelPadding EdgeInsetsGeometry
The padding added to each of the tab labels. [...]
final
labelStyle TextStyle
The text style of the selected tab labels. [...]
final
onTap ValueChanged<int>
An optional callback that's called when the TabBar is tapped. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
unselectedLabelColor Color
The color of unselected tab labels. [...]
final
unselectedLabelStyle TextStyle
The text style of the unselected tab labels [...]
final

Methods

list(List<Widget> list) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited