TIMUIKitChat constructor
TIMUIKitChat({
- Key? key,
- String? groupID,
- required V2TimConversation conversation,
- String? conversationID,
- ConvType? conversationType,
- List<
V2TimGroupMemberFullInfo?> ? groupMemberList, - String? conversationShowName,
- String? abstractMessageBuilder(
- V2TimMessage message
- void onTapAvatar(
- String userID,
- TapDownDetails tapDetails
- @Deprecated("Nickname will not show in one-to-one chat, if you tend to control it in group chat, please use `isShowSelfNameInGroup` and `isShowOthersNameInGroup` from `config: TIMUIKitChatConfig` instead") bool showNickName = false,
- bool showTotalUnReadCount = false,
- MessageItemBuilder? messageItemBuilder,
- @Deprecated("Please use [extraTipsActionItemBuilder] instead") Widget? exteraTipsActionItemBuilder(
- V2TimMessage message,
- dynamic closeTooltip(), [
- Key? key,
- BuildContext? context,
- Widget? extraTipsActionItemBuilder(
- V2TimMessage message,
- dynamic closeTooltip(), [
- Key? key,
- BuildContext? context,
- String? draftText,
- String? textFieldHintText,
- V2TimMessage? initFindingMsg,
- Widget userAvatarBuilder(
- BuildContext context,
- V2TimMessage message
- AppBar? appBarConfig,
- TIMUIKitChatController? controller,
- MorePanelConfig? morePanelConfig,
- CustomStickerPanel? customStickerPanel,
- TIMUIKitChatConfig? config = const TIMUIKitChatConfig(),
- TongueItemBuilder? tongueItemBuilder,
- List<
V2TimGroupAtInfo?> ? groupAtInfoList, - TIMUIKitHistoryMessageListConfig? mainHistoryListConfig,
- ValueChanged<
String> ? onDealWithGroupApplication, - ToolTipsConfig? toolTipsConfig,
- ChatLifeCycle? lifeCycle,
- Widget? topFixWidget = const SizedBox(),
- Widget textFieldBuilder(
- BuildContext context
- List<
CustomEmojiFaceData> customEmojiStickerList = const [], - Widget? customAppBar,
- Widget? inputTopBuilder,
- void onSecondaryTapAvatar(
- String userID,
- TapDownDetails tapDetails
- Widget? customMessageHoverBarOnDesktop(
- V2TimMessage message
Implementation
TIMUIKitChat(
{Key? key,
this.groupID,
required this.conversation,
this.conversationID,
this.conversationType,
this.groupMemberList,
this.conversationShowName,
this.abstractMessageBuilder,
this.onTapAvatar,
@Deprecated("Nickname will not show in one-to-one chat, if you tend to control it in group chat, please use `isShowSelfNameInGroup` and `isShowOthersNameInGroup` from `config: TIMUIKitChatConfig` instead") this.showNickName = false,
this.showTotalUnReadCount = false,
this.messageItemBuilder,
@Deprecated("Please use [extraTipsActionItemBuilder] instead") this.exteraTipsActionItemBuilder,
this.extraTipsActionItemBuilder,
this.draftText,
this.textFieldHintText,
this.initFindingMsg,
this.userAvatarBuilder,
this.appBarConfig,
this.controller,
this.morePanelConfig,
this.customStickerPanel,
this.config = const TIMUIKitChatConfig(),
this.tongueItemBuilder,
this.groupAtInfoList,
this.mainHistoryListConfig,
this.onDealWithGroupApplication,
this.toolTipsConfig,
this.lifeCycle,
this.topFixWidget = const SizedBox(),
this.textFieldBuilder,
this.customEmojiStickerList = const [],
this.customAppBar,
this.inputTopBuilder,
this.onSecondaryTapAvatar,
this.customMessageHoverBarOnDesktop})
: super(key: key) {
startTime = DateTime.now().millisecondsSinceEpoch;
}