ChatUIKitAppBarModel constructor
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 底部分割线颜色
Implementation
ChatUIKitAppBarModel({
this.title,
this.centerWidget,
this.titleTextStyle,
this.subtitle,
this.subTitleTextStyle,
this.leadingActions,
this.leadingActionsBuilder,
this.trailingActions,
this.trailingActionsBuilder,
this.showBackButton = true,
this.onBackButtonPressed,
this.centerTitle = false,
this.systemOverlayStyle,
this.backgroundColor,
this.bottomLine,
this.bottomLineColor,
});