ThreadMessagesView class

Inheritance

Constructors

ThreadMessagesView({String? attributes, ChatUIKitViewObserver? viewObserver, required ThreadMessagesViewController controller, ChatUIKitAppBarModel? appBarModel, bool enableAppBar = true, ChatUIKitKeyboardPanelController? inputController, List<ChatUIKitEventAction>? morePressActions, MessagesViewMorePressHandler? onMoreActionsItemsHandler, List<ChatUIKitEventAction>? longPressActions, MessagesViewItemLongPressPositionHandler? onItemLongPressHandler, bool? forceLeft, Widget? emojiWidget, MessageItemBuilder? replyBarBuilder, Widget quoteBuilder(BuildContext context, QuoteModel model)?, Key? key, Widget? inputBar, MessageItemShowHandler? showMessageItemAvatar, MessageItemShowHandler? showMessageItemNickname, MessageItemGlobalPositionTapHandler? onItemTap, MessageItemGlobalPositionTapHandler? onItemLongPress, MessageItemGlobalPositionTapHandler? onDoubleTap, MessageItemTapHandler? onAvatarTap, MessageItemTapHandler? onAvatarLongPress, MessageItemTapHandler? onNicknameTap, MessageItemBuilder? itemBuilder, MessageItemBuilder? alertItemBuilder, MessageItemTapHandler? onErrorBtnTapHandler, MessageItemBubbleBuilder? bubbleBuilder, MessageItemBuilder? bubbleContentBuilder, Widget? multiSelectBottomBar, MessageReactionItemTapHandler? onReactionItemTap, MessageItemTapHandler? onReactionInfoTap, MessageItemBuilder? reactionItemsBuilder, ChatUIKitMoreActionsBuilder? rightTopMoreActionsBuilder})
const
ThreadMessagesView.arguments(ThreadMessagesViewArguments arguments, {Key? key})

Properties

alertItemBuilder MessageItemBuilder?
提示消息构建器, 如果设置后需要显示提示消息时会直接回调,如果不处理可以返回 null
final
appBarModel ChatUIKitAppBarModel?
final
attributes String?
View 附加属性,设置后的内容将会带入到下一个页面。
final
bubbleBuilder MessageItemBubbleBuilder?
气泡构建器,如果设置后将会替换默认的气泡构建器。详细参考 MessageItemBubbleBuilder
final
bubbleContentBuilder MessageItemBuilder?
气泡内容构建器,如果设置后将会替换默认的气泡内容构建器。详细参考 MessageItemBuilder
final
controller ThreadMessagesViewController
final
emojiWidget Widget?
表情控件,如果设置后将会替换默认的表情控件。详细参考 ChatUIKitEmojiPanel
final
enableAppBar bool
是否显示AppBar, 默认为 true。 当为 false 时将不会显示AppBar。同时也会影响到是否显示标题。
final
forceLeft bool?
强制消息靠左,默认为 false, 设置后自己发的消息也会在左侧显示。
final
hashCode int
The hash code for this object.
no setterinherited
inputBar Widget?
自定义输入框, 如果设置后将会替换默认的输入框。详细参考 ChatUIKitInputBar
final
inputController ChatUIKitKeyboardPanelController?
final
itemBuilder MessageItemBuilder?
消息 item 构建器, 如果设置后需要显示消息时会直接回调,如果不处理可以返回 null
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
longPressActions List<ChatUIKitEventAction>?
消息长按事件列表,如果设置后将会替换默认的消息长按事件列表。详细参考 ChatUIKitEventAction
final
morePressActions List<ChatUIKitEventAction>?
更多按钮点击事件列表,如果设置后将会替换默认的更多按钮点击事件列表。详细参考 ChatUIKitEventAction
final
multiSelectBottomBar Widget?
多选时显示的 bottom bar
final
onAvatarLongPress MessageItemTapHandler?
头像长按事件,如果设置后头像长按事件将直接回调,如果不处理可以返回 false
final
onAvatarTap MessageItemTapHandler?
头像点击事件,如果设置后头像点击事件将直接回调,如果不处理可以返回 false
final
onDoubleTap MessageItemGlobalPositionTapHandler?
消息双击事件,如果设置后消息双击事件将直接回调,如果不处理可以返回 false
final
onErrorBtnTapHandler MessageItemTapHandler?
错误消息点击事件,如果设置后将会替换默认的错误消息点击事件。如果不处理可以返回 false。默认行为为重新发送消息。
final
onItemLongPress MessageItemGlobalPositionTapHandler?
消息长按事件, 如果设置后消息长按事件将直接回调,返回 true 表示处理你需要处理,返回 false 则会执行默认的长按事件。
final
onItemLongPressHandler MessagesViewItemLongPressPositionHandler?
消息长按事件回调, 如果设置后将会替换默认的消息长按事件回调。当长按时会回调 longPressActions 中设置的事件,需要返回一个列表用于替换,如果不返回则不会显示长按。
final
onItemTap MessageItemGlobalPositionTapHandler?
消息点击事件, 如果设置后消息点击事件将直接回调,如果不处理可以返回 false
final
onMoreActionsItemsHandler MessagesViewMorePressHandler?
更多按钮点击事件, 如果设置后将会替换默认的更多按钮点击事件。详细参考 ChatUIKitEventAction
final
onNicknameTap MessageItemTapHandler?
昵称点击事件, 如果设置后昵称点击事件将直接回调,如果不处理可以返回 false
final
onReactionInfoTap MessageItemTapHandler?
final
onReactionItemTap MessageReactionItemTapHandler?
final
quoteBuilder Widget Function(BuildContext context, QuoteModel model)?
引用消息构建器,如果设置后将会替换默认的引用消息样式。
final
reactionItemsBuilder MessageItemBuilder?
final
replyBarBuilder MessageItemBuilder?
回复消息输入控件构建器,如果设置后将会替换默认的回复消息输入控件构建器。详细参考 ChatUIKitReplyBar
final
rightTopMoreActionsBuilder ChatUIKitMoreActionsBuilder?
更多操作构建器,用于构建更多操作的菜单,如果不设置将会使用默认的菜单。
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showMessageItemAvatar MessageItemShowHandler?
是否显示头像, 默认为 true。 如果设置为 false 将不会显示头像。
final
showMessageItemNickname MessageItemShowHandler?
是否显示昵称, 默认为 true。如果设置为 false 将不会显示昵称。
final
viewObserver ChatUIKitViewObserver?
用于刷新页面的Observer
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ThreadMessagesView>
Creates the mutable state for this widget at a given location in the tree.
override
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