feat: 2.6.0+2

This commit is contained in:
anonymous 2024-07-10 10:49:57 +08:00
parent cadd5108c1
commit 211dccc9da
6 changed files with 31 additions and 31 deletions

View File

@ -1251,7 +1251,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "2.5.1+5" version: "2.6.0+1"
tencent_cloud_uikit_core: tencent_cloud_uikit_core:
dependency: transitive dependency: transitive
description: description:

View File

@ -1,6 +1,6 @@
<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="&#231;&#188;&#150;&#231;&#187;&#132; 9&#229;&#164;&#135;&#228;&#187;&#189; 2" opacity="0.795169"> <g id="&#231;&#188;&#150;&#231;&#187;&#132; 9&#229;&#164;&#135;&#228;&#187;&#189; 2" opacity="0.795169">
<path id="&#231;&#159;&#169;&#229;&#189;&#162;" d="M0.5 2.25C0.5 1.2835 1.2835 0.5 2.25 0.5H6.54211C6.62301 0.5 6.70271 0.519631 6.77435 0.557208L8.63621 1.53374C8.85115 1.64647 9.09023 1.70536 9.33293 1.70536H13.75C14.7165 1.70536 15.5 2.48886 15.5 3.45536V11.75C15.5 12.7165 14.7165 13.5 13.75 13.5H2.25C1.2835 13.5 0.5 12.7165 0.5 11.75V2.25Z" stroke="#232832"/> <path id="&#231;&#159;&#169;&#229;&#189;&#162;" d="M0.5 2.25C0.5 1.2835 1.2835 0.5 2.25 0.5H6.54211C6.62301 0.5 6.70271 0.519631 6.77435 0.557208L8.63621 1.53374C8.85115 1.64647 9.09023 1.70536 9.33293 1.70536H13.75C14.7165 1.70536 15.5 2.48886 15.5 3.45536V11.75C15.5 12.7165 14.7165 13.5 13.75 13.5H2.25C1.2835 13.5 0.5 12.7165 0.5 11.75V2.25Z" stroke="#232832"/>
<rect id="&#231;&#159;&#169;&#229;&#189;&#162;_2" x="0.5" y="3.5" width="15" height="10" rx="1.75" fill="white" stroke="#232832"/> <rect id="&#231;&#159;&#169;&#229;&#189;&#162;_2" x="0.5" y="3.5" width="15" height="10" rx="1.75" stroke="#232832"/>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 710 B

After

Width:  |  Height:  |  Size: 698 B

View File

@ -1188,10 +1188,11 @@ class TUIChatSeparateViewModel extends ChangeNotifier {
sendForwardMessage({ sendForwardMessage({
required List<V2TimConversation> conversationList, required List<V2TimConversation> conversationList,
}) async { }) async {
final selectedMessages = List.from(_multiSelectedMessageList);
for (var conversation in conversationList) { for (var conversation in conversationList) {
final convID = conversation.groupID ?? conversation.userID ?? ""; final convID = conversation.groupID ?? conversation.userID ?? "";
final convType = conversation.type; final convType = conversation.type;
for (var message in _multiSelectedMessageList) { for (var message in selectedMessages) {
final forwardMessageInfo = final forwardMessageInfo =
await _messageService.createForwardMessage(msgID: message.msgID!); await _messageService.createForwardMessage(msgID: message.msgID!);
final messageInfo = forwardMessageInfo!.messageInfo; final messageInfo = forwardMessageInfo!.messageInfo;
@ -1227,13 +1228,13 @@ class TUIChatSeparateViewModel extends ChangeNotifier {
required List<String> abstractList, required List<String> abstractList,
required BuildContext context, required BuildContext context,
}) async { }) async {
final List<String> msgIDList = _multiSelectedMessageList
.map((e) => e.msgID ?? "")
.where((element) => element != "")
.toList();
for (var conversation in conversationList) { for (var conversation in conversationList) {
final convID = conversation.groupID ?? conversation.userID ?? ""; final convID = conversation.groupID ?? conversation.userID ?? "";
final convType = conversation.type; final convType = conversation.type;
final List<String> msgIDList = _multiSelectedMessageList
.map((e) => e.msgID ?? "")
.where((element) => element != "")
.toList();
final mergerMessageInfo = await _messageService.createMergerMessage( final mergerMessageInfo = await _messageService.createMergerMessage(
msgIDList: msgIDList, msgIDList: msgIDList,
title: title, title: title,

View File

@ -197,7 +197,7 @@ class TUIChatGlobalModel extends ChangeNotifier implements TIMUIKitClass {
clearCurrentConversation() { clearCurrentConversation() {
// Only keep the last 20 messages when existing a chat. // Only keep the last 20 messages when existing a chat.
_messageListMap[currentSelectedConv] = (_messageListMap[currentSelectedConv] ?? []).sublist(0, min(10, ((_messageListMap[currentSelectedConv] ?? []).length - 1))); _messageListMap[currentSelectedConv] = (_messageListMap[currentSelectedConv] ?? []).sublist(0, max(0, min(10, ((_messageListMap[currentSelectedConv] ?? []).length - 1))));
if (_currentConversationList.isNotEmpty) { if (_currentConversationList.isNotEmpty) {
_currentConversationList.removeLast(); _currentConversationList.removeLast();
} }

View File

@ -80,28 +80,27 @@ class _AZListViewContainerState extends TIMUIKitState<AZListViewContainer> {
return ChangeNotifierProvider.value( return ChangeNotifierProvider.value(
value: serviceLocator<TUIThemeViewModel>(), value: serviceLocator<TUIThemeViewModel>(),
child: Consumer<TUIThemeViewModel>( child: Consumer<TUIThemeViewModel>(
builder: (context, tuiTheme, child) => Scrollbar( builder: (context, tuiTheme, child) => AzListView(
child: AzListView( physics: const BouncingScrollPhysics(
physics: const BouncingScrollPhysics( parent: AlwaysScrollableScrollPhysics()),
parent: AlwaysScrollableScrollPhysics()), data: _list!,
data: _list!, itemCount: _list!.length,
itemCount: _list!.length, itemBuilder: widget.itemBuilder,
itemBuilder: widget.itemBuilder, indexBarData: (!isDesktopScreen && widget.isShowIndexBar)
indexBarData: (!isDesktopScreen && widget.isShowIndexBar) ? SuspensionUtil.getTagIndexList(_list!)
? SuspensionUtil.getTagIndexList(_list!) .where((element) => element != "@")
.where((element) => element != "@") .toList()
.toList() : [],
: [], susItemBuilder: (BuildContext context, int index) {
susItemBuilder: (BuildContext context, int index) { if (widget.susItemBuilder != null) {
if (widget.susItemBuilder != null) { return widget.susItemBuilder!(context, index);
return widget.susItemBuilder!(context, index); }
} ISuspensionBeanImpl model = _list![index];
ISuspensionBeanImpl model = _list![index]; if (model.getSuspensionTag() == "@") {
if (model.getSuspensionTag() == "@") { return Container();
return Container(); }
} return getSusItem(context, model.getSuspensionTag());
return getSusItem(context, model.getSuspensionTag()); })));
}))));
} }
} }

View File

@ -1,6 +1,6 @@
name: tencent_cloud_chat_uikit name: tencent_cloud_chat_uikit
description: A powerful chat UI component library and business logic for Tencent Cloud Chat, creating seamless in-app chat modules for delightful user experiences. description: A powerful chat UI component library and business logic for Tencent Cloud Chat, creating seamless in-app chat modules for delightful user experiences.
version: 2.6.0+1 version: 2.6.0+2
homepage: https://trtc.io/products/chat?utm_source=gfs&utm_medium=link&utm_campaign=%E6%B8%A0%E9%81%93&_channel_track_key=k6WgfCKn homepage: https://trtc.io/products/chat?utm_source=gfs&utm_medium=link&utm_campaign=%E6%B8%A0%E9%81%93&_channel_track_key=k6WgfCKn
repository: https://github.com/TencentCloud/chat-uikit-flutter repository: https://github.com/TencentCloud/chat-uikit-flutter
documentation: https://comm.qq.com/im/doc/flutter/en/TUIKit/readme.html documentation: https://comm.qq.com/im/doc/flutter/en/TUIKit/readme.html