RCKChatHeader class
聊天页导航区(①)。
负责 AppBar 及左侧区域:多选时的「取消」、返回按钮 + 其他会话未读气泡、 以及标题的展示。标题资料由聊天页取好后传入,本模块不持有业务状态。
preferredSize 与内部默认的 RCKChatAppBarWidget 保持一致;当调用方用
appBarBuilder 自带标题栏时,聊天页会直接使用它、不经过本组件。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RCKChatHeader
- Implemented types
Constructors
- RCKChatHeader({Key? key, required RCKChatAppBarConfig config, required String conversationName, required VoidCallback onClose, RCIMIWConversation? conversation, RCKChatProfileInfo? profileInfo, Widget titleBuilder(BuildContext, String, RCKChatProfileInfo?)?})
-
const
Properties
- config → RCKChatAppBarConfig
-
AppBar 配置
final
- conversation → RCIMIWConversation?
-
当前会话,用于计算「除本会话外」的未读数
final
- conversationName → String
-
会话名(聊天页维护,默认 'Default Name')
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onClose → VoidCallback
-
关闭当前聊天(聊天页已解析好:内嵌时回调宿主,否则路由返回)
final
- preferredSize → Size
-
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
- profileInfo → RCKChatProfileInfo?
-
聊天页已取到的资料
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleBuilder → Widget Function(BuildContext, String, RCKChatProfileInfo?)?
-
自定义标题构建器
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