ActionBar class

Inheritance
Implemented types

Constructors

ActionBar({Key? key, double height = 46, bool isVisibleActionBar = true, double? edgesWidgetWidth, Color backgroundColor = Colors.white, bool isShowDivider = false, List<Widget>? leadingActions, List<Widget>? actions, Widget? content, ActionClickHandle? actionClick, dynamic extra, bool isFloatContent = false, double rightPadding = 0, SystemUiOverlayStyle systemUiOverlayStyle = const SystemUiOverlayStyle(statusBarColor: Colors.transparent, statusBarIconBrightness: Brightness.dark, statusBarBrightness: Brightness.light)})
const

Properties

actionClick ActionClickHandle?
action button点击(left button or right button)
final
actions List<Widget>?
操作项
final
backgroundColor Color
背景颜色
final
content Widget?
内容部件
final
edgesWidgetWidth double?
两边自定义视图预留的最大宽度(默认自适应)
final
extra → dynamic
扩展数据
final
hashCode int
The hash code for this object.
no setterinherited
height double
appbar高度
final
isFloatContent bool
content float
final
isShowDivider bool
是否显示分隔线
final
isVisibleActionBar bool
是否显示action bar,默认显示
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leadingActions List<Widget>?
标题前面显示的按钮控件
final
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
rightPadding double
右边距
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemUiOverlayStyle SystemUiOverlayStyle
状态栏样式
final

Methods

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