BottomBarWidget class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- BottomBarWidget
Constructors
-
BottomBarWidget({Key? key, BottomBarStyle? barStyle, Color? color, Color? fixedColor, required List<
BottomBarItem> items, BottomBarListener? listener, List<Widget> ? tabWidgets, Color? backgroundColor, double elevation = 0, BottomConvexAction? floatConvex, double? convexSize, double height = 60, double top = 0, int currentItem = 0, double iconSize = 20, double convexIconMargin = 5, double fontSize = 12, double drawablePadding = 5}) -
const
Properties
- backgroundColor → Color?
-
背景颜色
final
- barStyle → BottomBarStyle?
-
导航条样式
final
- color → Color?
-
默认文本颜色
final
- convexIconMargin → double
-
悬浮或凸出图标外边距(默认8)
final
- convexSize → double?
-
内嵌按钮大小
final
- currentItem → int
-
当前选中项
final
- drawablePadding → double
-
文本图片之间间距
final
- elevation → double
-
外边阴影高度(默认0)
final
- fixedColor → Color?
-
选中文本颜色
final
- floatConvex → BottomConvexAction?
-
内嵌按钮(仅当(barStyle=BottomBarStyle.middleFloating)且items.length%2 == 0时有效)
final
- fontSize → double
-
导航文字大小
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
导航条高度
final
- iconSize → double
-
图标大小
final
-
items
→ List<
BottomBarItem> -
tab选项集合
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listener → BottomBarListener?
-
BottomBar监听器
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tabWidgets
→ List<
Widget> ? -
tab页面组件
final
- top → double
-
barStyle=BottomBarStyle.middleConvex
top edge of the convex shape relative to AppBar
https://github.com/hacktons/convex_bottom_bar
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _BottomBarWidgetState -
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