TabBarBox class

Inheritance
Available extensions

Constructors

TabBarBox({Key? key, required TabController controller, required List<Widget> tabs, EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero, TabBarLevelPosition levelPosition = TabBarLevelPosition.right, EdgeInsetsGeometry? labelPadding, bool isScrollable = true, AlignmentGeometry? alignment, Widget? tabBarLevel, Color? labelColor, Color? unselectedLabelColor, TabBarIndicatorSize? indicatorSize = TabBarIndicatorSize.label, TextStyle? labelStyle, TextStyle? unselectedLabelStyle, double indicatorWeight = 1, Decoration? indicator, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? height, Decoration? decoration, double? width, ValueChanged<int>? onTap, Color? indicatorColor, bool automaticIndicatorColorAdjustment = true, DragStartBehavior dragStartBehavior = DragStartBehavior.start, MaterialStateProperty<Color?>? overlayColor, MouseCursor? mouseCursor, bool? enableFeedback, ScrollPhysics? physics})
const

Properties

alignment AlignmentGeometry?
作用于整个TabBar
final
automaticIndicatorColorAdjustment bool
TabBar
final
controller TabController
final
decoration Decoration?
final
dragStartBehavior DragStartBehavior
final
enableFeedback bool?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
indicator Decoration?
tabBar 指示器
final
indicatorColor Color?
选中与未选中的指示器和字体样式和颜色,
final
indicatorPadding EdgeInsetsGeometry
作用于指示器
final
indicatorSize TabBarIndicatorSize?
final
indicatorWeight double
指示器高度
final
isScrollable bool
true 最小宽度,false充满最大宽度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelColor Color?
final
labelPadding EdgeInsetsGeometry?
作用于 label
final
labelStyle TextStyle?
final
levelPosition TabBarLevelPosition
TabBar 位置
final
margin EdgeInsetsGeometry?
final
mouseCursor MouseCursor?
final
onTap ValueChanged<int>?
final
overlayColor MaterialStateProperty<Color?>?
final
padding EdgeInsetsGeometry?
final
physics ScrollPhysics?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabBarLevel Widget?
TabBar 水平左边或者右边的Widget 添加标签
final
tabBarWidget Widget
no setter
tabs List<Widget>
final
unselectedLabelColor Color?
final
unselectedLabelStyle TextStyle?
final
width double?
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}) 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