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. double? messageTextSize,
  9. Color? messageTextColor,
  10. double? userNickTextSize,
  11. Color? userNickColor,
  12. double? avatarCornerRadius,
  13. bool enableMessageLongPress = true,
  14. PopMenuConfig? popMenuConfig,
  15. bool keepDefaultMoreAction = true,
  16. List<ActionItem>? moreActions,
  17. ChatKitMessageBuilder? messageBuilder,
  18. MessageClickListener? messageClickListener,
  19. Map<String, dynamic> getPushPayload(
    1. NIMMessage message
    )?,
  20. Widget imagePlaceHolder(
    1. double aspectRatio, {
    2. double? width,
    })?,
  21. int? maxVideoSize,
  22. dynamic onTapAitLink(
    1. String account,
    2. String text
    )?,
  23. int? maxFileSize,
  24. bool keepDefaultInputAction = true,
  25. List<ActionItem>? inputActions,
  26. String? getMessageBrief(
    1. NIMMessage message
    )?,
  27. int showTimeInterval = 5 * 60 * 1000,
  28. bool? isShowAvatar(
    1. NIMMessage message
    )?,
  29. 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});