feat: Upgrade to 2.3.1

This commit is contained in:
anonymous 2023-09-13 11:31:26 +08:00
parent 33a5951c3f
commit c28e1e9529
9 changed files with 33 additions and 44 deletions

View File

@ -1,3 +1,10 @@
# 2.3.1
## Bug Fixes
* Resolved an issue that prevented the clearing of history messages after deleting a conversation.
* Fixed an issue that prevented opening files sent by the user themselves on Android.
# 2.3.0
## Breaking Changes

View File

@ -800,6 +800,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.2"
open_file:
dependency: transitive
description:
name: open_file
sha256: a5a32d44acb7c899987d0999e1e3cbb0a0f1adebbf41ac813ec6d2d8faa0af20
url: "https://pub.dev"
source: hosted
version: "3.3.2"
package_config:
dependency: transitive
description:
@ -1203,7 +1211,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.2.1"
version: "2.3.0"
tencent_cloud_uikit_core:
dependency: transitive
description:
@ -1252,14 +1260,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.1"
tencent_open_file:
dependency: transitive
description:
name: tencent_open_file
sha256: bb92d2f052c150a45942c564fba13d150a1b7b47525e6fdd74ccc58058ba5dcf
url: "https://pub.dev"
source: hosted
version: "4.0.11"
tencent_super_tooltip:
dependency: transitive
description:

View File

@ -326,10 +326,6 @@ class TUIChatSeparateViewModel extends ChangeNotifier {
}
notifyListeners();
if (response.messageList.isEmpty) {
return false;
}
// lastMsgID判断是否为分页加载
if (lastMsgID != null && currentRecordList != null) {
List<V2TimMessage> messageList = response.messageList;

View File

@ -6,6 +6,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:image_clipboard/image_clipboard.dart';
import 'package:open_file/open_file.dart';
import 'package:provider/provider.dart';
import 'package:tencent_cloud_chat_uikit/business_logic/view_models/tui_self_info_view_model.dart';
import 'package:tencent_cloud_chat_uikit/data_services/services_locatar.dart';
@ -21,7 +22,6 @@ import 'package:tencent_cloud_chat_uikit/ui/utils/platform.dart';
import 'package:tencent_cloud_chat_uikit/ui/utils/screen_utils.dart';
import 'package:tencent_cloud_chat_uikit/ui/views/TIMUIKitChat/TIMUIKItMessageList/tim_uikit_chat_history_message_list_item.dart';
import 'package:tencent_cloud_chat_uikit/ui/widgets/forward_message_screen.dart';
import 'package:tencent_open_file/tencent_open_file.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:path/path.dart' as path;

View File

@ -6,9 +6,9 @@ import 'dart:math';
import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/material.dart';
import 'package:loading_animation_widget/loading_animation_widget.dart';
import 'package:open_file/open_file.dart';
import 'package:tencent_cloud_chat_uikit/tencent_cloud_chat_uikit.dart';
import 'package:tencent_cloud_chat_uikit/ui/utils/permission.dart';
import 'package:tencent_open_file/tencent_open_file.dart';
import 'package:tencent_cloud_chat_uikit/base_widgets/tim_ui_kit_base.dart';
import 'package:tencent_cloud_chat_uikit/base_widgets/tim_ui_kit_state.dart';
import 'package:tencent_cloud_chat_uikit/business_logic/separate_models/tui_chat_separate_view_model.dart';
@ -240,7 +240,9 @@ class _TIMUIKitFileElemState extends TIMUIKitState<TIMUIKitFileElem> {
OpenFile.open(filePath);
}
// ignore: empty_catches
} catch (e) {}
} catch (e) {
OpenFile.open(filePath);
}
}
void downloadWebFile(String fileUrl) async {

View File

@ -5,11 +5,11 @@ import 'dart:convert';
import 'package:crypto/crypto.dart';
import 'package:device_info_plus/device_info_plus.dart';
import 'package:http/http.dart' as http;
import 'package:open_file/open_file.dart';
import 'package:tencent_cloud_chat_uikit/business_logic/separate_models/tui_chat_separate_view_model.dart';
import 'package:tencent_cloud_chat_uikit/data_services/message/message_services.dart';
import 'package:tencent_cloud_chat_uikit/ui/utils/screen_utils.dart';
import 'package:tencent_cloud_chat_uikit/ui/widgets/wide_popup.dart';
import 'package:tencent_open_file/tencent_open_file.dart';
import 'package:universal_html/html.dart' as html;
import 'dart:io';
import 'dart:math';
@ -489,14 +489,6 @@ class _TIMUIKitImageElem extends TIMUIKitState<TIMUIKitImageElem> {
}
}
ImageProvider imageProvider;
if (isNetworkImage) {
imageProvider = CachedNetworkImageProvider(
webPath ?? smallImg?.url ?? originalImg!.url!);
} else {
imageProvider = FileImage(File(smallLocalPath ?? originLocalPath!));
}
return GestureDetector(
onTap: () => onClickImage(
theme: theme,
@ -580,14 +572,6 @@ class _TIMUIKitImageElem extends TIMUIKitState<TIMUIKitImageElem> {
Widget? _renderImage(dynamic heroTag, TUITheme theme,
{V2TimImage? originalImg, V2TimImage? smallImg}) {
double? positionRadio;
if (smallImg?.width != null &&
smallImg?.height != null &&
smallImg?.width != 0 &&
smallImg?.height != 0) {
positionRadio = (smallImg!.width! / smallImg.height!);
}
if (PlatformUtils().isWeb && widget.message.imageElem!.path != null) {
// Displaying on Web only
return _renderAllImage(

View File

@ -3,6 +3,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:loading_animation_widget/loading_animation_widget.dart';
import 'package:open_file/open_file.dart';
import 'package:tencent_cloud_chat_uikit/base_widgets/tim_ui_kit_base.dart';
import 'package:tencent_cloud_chat_uikit/base_widgets/tim_ui_kit_state.dart';
import 'package:tencent_cloud_chat_uikit/tencent_cloud_chat_uikit.dart';
@ -14,7 +15,6 @@ import 'package:tencent_cloud_chat_uikit/ui/utils/platform.dart';
import 'package:tencent_cloud_chat_uikit/ui/views/TIMUIKitChat/TIMUIKitMessageItem/TIMUIKitMessageReaction/tim_uikit_message_reaction_wrapper.dart';
import 'package:tencent_cloud_chat_uikit/ui/widgets/video_screen.dart';
import 'package:tencent_cloud_chat_uikit/ui/widgets/wide_popup.dart';
import 'package:tencent_open_file/tencent_open_file.dart';
import 'package:url_launcher/url_launcher.dart';
class TIMUIKitVideoElem extends StatefulWidget {

View File

@ -875,6 +875,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.2"
open_file:
dependency: "direct main"
description:
name: open_file
sha256: a5a32d44acb7c899987d0999e1e3cbb0a0f1adebbf41ac813ec6d2d8faa0af20
url: "https://pub.dev"
source: hosted
version: "3.3.2"
package_config:
dependency: transitive
description:
@ -1312,14 +1320,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.1"
tencent_open_file:
dependency: "direct main"
description:
name: tencent_open_file
sha256: bb92d2f052c150a45942c564fba13d150a1b7b47525e6fdd74ccc58058ba5dcf
url: "https://pub.dev"
source: hosted
version: "4.0.11"
tencent_super_tooltip:
dependency: "direct main"
description:

View File

@ -1,6 +1,6 @@
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.
version: 2.3.0
version: 2.3.1
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
documentation: https://comm.qq.com/im/doc/flutter/en/TUIKit/readme.html
@ -60,7 +60,7 @@ dependencies:
collection: ^1.15.0
flutter_image_compress: ^1.1.3
uuid: ^3.0.6
tencent_open_file: ^4.0.10
open_file: ^3.3.2
tencent_keyboard_visibility: ^1.0.1
tim_ui_kit_sticker_plugin: ^3.0.1+1
tencent_im_base: ^3.0.1