ChatUIKitAppBarModel constructor

ChatUIKitAppBarModel({
  1. String? title,
  2. Widget? centerWidget,
  3. TextStyle? titleTextStyle,
  4. String? subtitle,
  5. TextStyle? subTitleTextStyle,
  6. List<ChatUIKitAppBarAction>? leadingActions,
  7. ChatUIKitAppBarActionsBuilder? leadingActionsBuilder,
  8. List<ChatUIKitAppBarAction>? trailingActions,
  9. ChatUIKitAppBarActionsBuilder? trailingActionsBuilder,
  10. bool showBackButton = true,
  11. VoidCallback? onBackButtonPressed,
  12. bool centerTitle = false,
  13. SystemUiOverlayStyle? systemOverlayStyle,
  14. Color? backgroundColor,
  15. bool? bottomLine,
  16. 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,
});