ChatUIConfig constructor

ChatUIConfig({
  1. bool? showTeamMessageStatus,
  2. BoxDecoration? receiveMessageBg,
  3. BoxDecoration? selfMessageBg,
  4. bool? showP2pMessageStatus,
  5. Color? signalBgColor,
  6. Color? timeTextColor,
  7. double? timeTextSize,
  8. Color? receiveMessageTextColor,
  9. Color? sendMessageTextColor,
  10. double? receiveMessageTextSize,
  11. double? sendMessageTextSize,
  12. double? userNickTextSize,
  13. Color? userNickColor,
  14. double? avatarCornerRadius,
  15. bool enableMessageLongPress = true,
  16. PopMenuConfig? popMenuConfig,
  17. bool keepDefaultMoreAction = true,
  18. List<ActionItem>? moreActions,
  19. ChatKitMessageBuilder? messageBuilder,
  20. MessageClickListener? messageClickListener,
  21. Future<Map<String, dynamic>> getPushPayload(
    1. NIMMessage message,
    2. String conversationId
    )?,
  22. Widget imagePlaceHolder(
    1. double aspectRatio, {
    2. double? width,
    })?,
  23. int? maxVideoSize,
  24. dynamic onTapAitLink(
    1. String account,
    2. String text
    )?,
  25. int? maxFileSize,
  26. bool keepDefaultInputAction = true,
  27. List<ActionItem>? inputActions,
  28. String? getMessageBrief(
    1. NIMMessage message
    )?,
  29. int showTimeInterval = 5 * 60 * 1000,
  30. bool? isShowAvatar(
    1. NIMMessage message
    )?,
  31. bool onTeamDismissOrLeave()?,
  32. Color? messageLinkColor,
  33. Widget teamSettingPanelBuilder(
    1. String teamId,
    2. VoidCallback onClose,
    3. VoidCallback? onQuitTeam
    )?,
})

Implementation

ChatUIConfig({
  this.showTeamMessageStatus,
  this.receiveMessageBg,
  this.selfMessageBg,
  this.showP2pMessageStatus,
  this.signalBgColor,
  this.timeTextColor,
  this.timeTextSize,
  this.receiveMessageTextColor,
  this.sendMessageTextColor,
  this.receiveMessageTextSize,
  this.sendMessageTextSize,
  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.onTeamDismissOrLeave,
  this.messageLinkColor,
  this.teamSettingPanelBuilder,
});