ChatUIConfig constructor
ChatUIConfig({
- 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(String, dynamic> >- NIMMessage message,
- String conversationId
- Widget imagePlaceHolder(})?,
- int? maxVideoSize,
- dynamic onTapAitLink()?,
- int? maxFileSize,
- bool keepDefaultInputAction = true,
- List<
ActionItem> ? inputActions, - String? getMessageBrief(
- NIMMessage message
- int showTimeInterval = 5 * 60 * 1000,
- bool? isShowAvatar(
- NIMMessage message
- Color? messageLinkColor,
Implementation
ChatUIConfig(
{this.showTeamMessageStatus,
this.receiveMessageBg,
this.selfMessageBg,
this.showP2pMessageStatus,
this.signalBgColor,
this.timeTextColor,
this.timeTextSize,
this.messageTextSize,
this.messageTextColor,
this.userNickTextSize,
this.userNickColor,
this.avatarCornerRadius,
this.enableMessageLongPress = true,
this.popMenuConfig,
this.keepDefaultMoreAction = true,
this.moreActions,
this.messageBuilder,
this.messageClickListener,
this.getPushPayload,
this.imagePlaceHolder,
this.maxVideoSize,
this.onTapAitLink,
this.maxFileSize,
this.keepDefaultInputAction = true,
this.inputActions,
this.getMessageBrief,
this.showTimeInterval = 5 * 60 * 1000,
this.isShowAvatar,
this.messageLinkColor});