BottomTabBar class

简述:底部导航栏组件容器,其中BrnBottomTabBarItem控制每个tab的状态 功能:底部导航栏主容器控制,如点击动画,每个tab的悬浮样式 特别注意:默认关闭点击动画,为固定显示状态

Inheritance

Constructors

BottomTabBar({Key? key, required List<BottomTabBarItem> items, ValueChanged<int>? onTap, int currentIndex = 0, BottomTabBarDisplayType type = BottomTabBarDisplayType.fixed, Color? fixedColor, double iconSize = 24.0, bool isAnimation = false, Color? badgeColor, bool isInkResponse = false})

Properties

badgeColor Color?
未读弹窗背景颜色,默认:fixedColor
final
currentIndex int
当前活动项的索引值
final
fixedColor Color?
底部Tab所选中时的颜色
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double
Tab中图标的大小
final
isAnimation bool
动画是否可见,默认:true
final
isInkResponse bool
InkResponse:是否可访问, 默认:true
final
items List<BottomTabBarItem>
底部导航栏中的交互式Tab,每个Tab都有一个图标和标题。
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap ValueChanged<int>?
Tab点击之后的回调函数
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type BottomTabBarDisplayType
底部选项卡的枚举类型fixed/shifting 默认为fixed
final

Methods

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