CustomAppBar class

AppBar 应用栏组件

Inheritance
Implemented types

Constructors

CustomAppBar({Key? key, Widget? leading, bool automaticallyImplyLeading = true, Widget? title, List<Widget>? actions, Widget? flexibleSpace, PreferredSizeWidget? bottom, double? elevation, double? scrolledUnderElevation, ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate, Color? shadowColor, Color? surfaceTintColor, ShapeBorder? shape, Color? backgroundColor, Color? foregroundColor, IconThemeData? iconTheme, IconThemeData? actionsIconTheme, bool primary = true, bool? centerTitle, bool excludeHeaderSemantics = false, double? titleSpacing, double toolbarOpacity = 1.0, double bottomOpacity = 1.0, double? toolbarHeight, double? leadingWidth, TextStyle? toolbarTextStyle, TextStyle? titleTextStyle, SystemUiOverlayStyle? systemOverlayStyle, bool forceMaterialTransparency = false, Clip? clipBehavior})
AppBar 应用栏组件
const

Properties

actions List<Widget>?
操作组件列表
final
actionsIconTheme IconThemeData?
操作图标主题
final
automaticallyImplyLeading bool
自动添加前导组件
final
backgroundColor Color?
背景色
final
bottom PreferredSizeWidget?
底部组件
final
bottomOpacity double
底部透明度
final
centerTitle bool?
标题居中
final
clipBehavior Clip?
裁剪方式
final
elevation double?
海拔高度
final
excludeHeaderSemantics bool
排除标题语义
final
flexibleSpace Widget?
弹性空间组件
final
forceMaterialTransparency bool
强制材质透明
final
foregroundColor Color?
前景色
final
hashCode int
The hash code for this object.
no setterinherited
iconTheme IconThemeData?
图标主题
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
前导组件
final
leadingWidth double?
前导宽度
final
notificationPredicate ScrollNotificationPredicate
滚动通知断言
final
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
primary bool
主要的
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrolledUnderElevation double?
滚动时海拔高度
final
shadowColor Color?
阴影颜色
final
shape ShapeBorder?
形状
final
surfaceTintColor Color?
表面色调
final
systemOverlayStyle SystemUiOverlayStyle?
系统界面样式
final
title Widget?
标题组件
final
titleSpacing double?
标题间距
final
titleTextStyle TextStyle?
标题文本样式
final
toolbarHeight double?
工具栏高度
final
toolbarOpacity double
工具栏透明度
final
toolbarTextStyle TextStyle?
工具栏文本样式
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, 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