ChatUIConfig class
聊天页面客户自定义配置
Constructors
-
ChatUIConfig.new({bool? showTeamMessageStatus, BoxDecoration? receiveMessageBg, BoxDecoration? selfMessageBg, bool? showP2pMessageStatus, Color? signalBgColor, Color? timeTextColor, double? timeTextSize, double? messageTextSize, Color? messageTextColor, double? userNickTextSize, Color? userNickColor, double? avatarCornerRadius, bool enableMessageLongPress = true, PopMenuConfig? popMenuConfig, bool keepDefaultMoreAction = true, List<
ActionItem> ? moreActions, ChatKitMessageBuilder? messageBuilder, MessageClickListener? messageClickListener, Future<Map< getPushPayload(NIMMessage message, String conversationId)?, Widget imagePlaceHolder(double aspectRatio, {double? width})?, int? maxVideoSize, dynamic onTapAitLink(String account, String text)?, int? maxFileSize, bool keepDefaultInputAction = true, List<String, dynamic> >ActionItem> ? inputActions, String? getMessageBrief(NIMMessage message)?, int showTimeInterval = 5 * 60 * 1000, bool? isShowAvatar(NIMMessage message)?, Color? messageLinkColor})
Properties
- avatarCornerRadius ↔ double?
-
头像的圆角
getter/setter pair
- enableMessageLongPress ↔ bool
-
长按弹框功能开关
getter/setter pair
- getMessageBrief ↔ String? Function(NIMMessage message)?
-
消息简要展示,将会显示在被回复的消息,合并转发之后的消息,以及推送内容
message
消息getter/setter pair -
getPushPayload
↔ Future<
Map< Function(NIMMessage message, String conversationId)?String, dynamic> > -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- imagePlaceHolder ↔ Widget Function(double aspectRatio, {double? width})?
-
设置图片加载中的占位图
aspectRatio
图片宽高比width
图片宽度getter/setter pair -
inputActions
↔ List<
ActionItem> ? -
自定义输入框功能按钮
getter/setter pair
- isShowAvatar ↔ bool? Function(NIMMessage message)?
-
是否展示头像
getter/setter pair
- keepDefaultInputAction ↔ bool
-
保留默认的输入框功能按钮
getter/setter pair
- keepDefaultMoreAction ↔ bool
-
保留默认的更多按钮
getter/setter pair
- maxFileSize ↔ int?
-
文件消息最大size 单位M,不设置默认200
getter/setter pair
- maxVideoSize ↔ int?
-
视频消息最大size 单位M,不设置默认200
getter/setter pair
- messageBuilder ↔ ChatKitMessageBuilder?
-
自定义消息构建
getter/setter pair
- messageClickListener ↔ MessageClickListener?
-
getter/setter pair
- messageLinkColor ↔ Color?
-
文本消息链接颜色,包括@用户显示的颜色
getter/setter pair
- messageTextColor ↔ Color?
-
文本消息字体颜色
getter/setter pair
- messageTextSize ↔ double?
-
文本消息字体大小
getter/setter pair
-
moreActions
↔ List<
ActionItem> ? -
更多面板自定义按钮
getter/setter pair
- onTapAitLink ↔ dynamic Function(String account, String text)?
-
被@的消息点击回调
account
被@的用户idtext
@的文本getter/setter pair - popMenuConfig ↔ PopMenuConfig?
-
长按弹框配置
getter/setter pair
- receiveMessageBg ↔ BoxDecoration?
-
接收消息背景装饰器
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfMessageBg ↔ BoxDecoration?
-
发送消息背景装饰器
getter/setter pair
- showP2pMessageStatus ↔ bool?
-
单聊中是否展示已读未读状态
getter/setter pair
- showTeamMessageStatus ↔ bool?
-
群聊中是否展示已读未读状态
getter/setter pair
- showTimeInterval ↔ int
-
展示时间的消息间隔,单位ms,默认5分钟
getter/setter pair
- signalBgColor ↔ Color?
-
被标记消息的背景色
getter/setter pair
- timeTextColor ↔ Color?
-
消息列表中,时间字体颜色
getter/setter pair
- timeTextSize ↔ double?
-
消息列表中,时间字体大小
getter/setter pair
- userNickColor ↔ Color?
-
不设置头像的用户所展示的文字头像中的文字颜色
getter/setter pair
- userNickTextSize ↔ double?
-
不设置头像的用户所展示的文字头像中的文字字体大小
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