ChatUIKitAppBarModel class
Constructors
-
ChatUIKitAppBarModel({String? title, Widget? centerWidget, TextStyle? titleTextStyle, String? subtitle, TextStyle? subTitleTextStyle, List<
ChatUIKitAppBarAction> ? leadingActions, ChatUIKitAppBarActionsBuilder? leadingActionsBuilder, List<ChatUIKitAppBarAction> ? trailingActions, ChatUIKitAppBarActionsBuilder? trailingActionsBuilder, bool showBackButton = true, VoidCallback? onBackButtonPressed, bool centerTitle = false, SystemUiOverlayStyle? systemOverlayStyle, Color? backgroundColor, bool? bottomLine, Color? bottomLineColor}) -
ChatUIKitAppBarModel 构造函数
title标题centerWidget中间控件, 优先级高于title 和 subtitle,如果设置了centerWidget,title 和 subtitle 将不会显示titleTextStyle标题样式subtitle副标题subTitleTextStyle副标题样式leadingActions左侧控件leadingActionsBuilder左侧控件构建器, 当存在默认值时会回调。trailingActions右侧控件trailingActionsBuilder右侧控件构建器, 当存在默认值时会回调。showBackButton是否显示返回键onBackButtonPressed返回键点击事件, 不设置是默认为返回上一页centerTitle是否居中显示标题systemOverlayStyle状态栏样式backgroundColor状态栏样式bottomLine是否显示底部分割线bottomLineColor底部分割线颜色
Properties
- backgroundColor ↔ Color?
-
状态栏样式
getter/setter pair
- bottomLine ↔ bool?
-
是否显示底部分割线
getter/setter pair
- bottomLineColor ↔ Color?
-
底部分割线颜色
getter/setter pair
- centerTitle ↔ bool
-
是否居中显示标题
getter/setter pair
- centerWidget ↔ Widget?
-
中间控件, 优先级高于title 和 subtitle,如果设置了centerWidget,title 和 subtitle 将不会显示
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
leadingActions
↔ List<
ChatUIKitAppBarAction> ? -
左侧控件
getter/setter pair
- leadingActionsBuilder ↔ ChatUIKitAppBarActionsBuilder?
-
左侧控件构建器
getter/setter pair
- onBackButtonPressed ↔ VoidCallback?
-
返回键点击事件
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBackButton ↔ bool
-
是否显示返回键
getter/setter pair
- subtitle ↔ String?
-
副标题
getter/setter pair
- subTitleTextStyle ↔ TextStyle?
-
副标题样式
getter/setter pair
- systemOverlayStyle ↔ SystemUiOverlayStyle?
-
状态栏样式
getter/setter pair
- title ↔ String?
-
标题
getter/setter pair
- titleTextStyle ↔ TextStyle?
-
标题样式
getter/setter pair
-
trailingActions
↔ List<
ChatUIKitAppBarAction> ? -
右侧控件
getter/setter pair
- trailingActionsBuilder ↔ ChatUIKitAppBarActionsBuilder?
-
右侧控件构建器
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited