PhoenixTabBar class
带小红点的Tabbar
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PhoenixTabBar
Constructors
-
PhoenixTabBar({required List<
BadgeTab> ? tabs, BrnTabBarBadgeMode mode = BrnTabBarBadgeMode.average, bool isScroll = false, double? tabHeight, EdgeInsetsGeometry padding = EdgeInsets.zero, TabController? controller, Color backgroundcolor = const Color(0xffffffff), Color? indicatorColor, double? indicatorWeight, double? indicatorWidth, EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero, Color? labelColor, TextStyle? labelStyle, EdgeInsetsGeometry labelPadding = EdgeInsets.zero, Color? unselectedLabelColor, TextStyle? unselectedLabelStyle, DragStartBehavior dragStartBehavior = DragStartBehavior.start, TabBarOnTap? onTap, double? tabWidth, bool hasDivider = false, bool hasIndex = false, bool showMore = false, String? moreWindowText, VoidCallback? onMorePop, CloseWindowController? closeController, BaseTabBarConfig? themeData, double? tagSpacing, int? preLineTagCount, double? tagHeight})
Properties
- backgroundcolor → Color
-
TabBar背景颜色
final
- closeController → CloseWindowController?
-
更多弹框关闭控制器
final
- controller → TabController?
-
控制Tab的切换
final
- dragStartBehavior → DragStartBehavior
-
处理拖拽开始行为方式,默认DragStartBehavior.start
final
- hasDivider → bool
-
是否显示分隔线
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasIndex → bool
-
是否显示角标
final
- indicatorColor → Color?
-
指示器的颜色
final
- indicatorPadding → EdgeInsetsGeometry
-
final
- indicatorWeight → double?
-
指示器的高度
final
- indicatorWidth → double?
-
指示器的宽度
final
- isScroll → bool
-
是否能滑动(当tab数量大于4个,默认都是滚动的,再设置此属性无效)
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelColor → Color?
-
选中Tab文本的颜色
final
- labelPadding → EdgeInsetsGeometry
-
Tab文本的Padding
final
- labelStyle → TextStyle?
-
选中Tab文本的样式
final
- mode → BrnTabBarBadgeMode
-
BrnTabBar
的tab模式 默认:BrnTabBarBadgeMode.average(按照屏幕平均分配模式)final - moreWindowText → String?
-
展开更多弹框标题
final
- onMorePop → VoidCallback?
-
更多弹框弹出的时候
final
- onTap → TabBarOnTap?
-
Tab的选中点击事件
final
- padding → EdgeInsetsGeometry
-
TabBar的padding
final
- preLineTagCount → int?
-
每行tag数
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showMore → bool
-
展开更多Tabs
final
- tabHeight → double?
-
Tabbar的整体高度
final
-
tabs
→ List<
BadgeTab> ? -
BrnTabBarBadge填充的数据,长度匹配控制器的TabController.length
final
- tabWidth → double?
-
添加的Tab的宽度(指定tabWidth就不会均分屏幕宽度)
final
- tagHeight → double?
-
tag高度
final
- tagSpacing → double?
-
tag间距
final
- themeData ↔ BaseTabBarConfig?
-
getter/setter pair
- unselectedLabelColor → Color?
-
未选中Tab文本的颜色
final
- unselectedLabelStyle → TextStyle?
-
未中Tab文本的样式
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → PhoenixTabBarState -
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