TencentCloud / TIMSDK

Tencent Cloud Chat features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication.
https://trtc.io/products/chat
2.56k stars 2.76k forks source link

聊天页面视频通话/语音通话长按,点击菜单引用出错 #1160

Open fylw opened 2 years ago

fylw commented 2 years ago

【Flutter】-【tim_ui_kit:0.08】:【聊天页面视频通话/语音通话长按,点击菜单引用出错】 issue内容:

【当前现象】:聊天页面视频通话/语音通话长按,点击菜单引用出错 【集成包】:tim_ui_kit 【有无日志或者描述、截图】:The following _TypeError was thrown building InputTextField-[GlobalKey#e3b4c](dirty, dependencies: [MediaQuery, _InheritedProviderScope<TIMUIKitChatConfig?>], state: _InputTextFieldState#1d4c9): type 'Row' is not a subtype of type 'String'

The relevant error-causing widget was: InputTextField-[GlobalKey#e3b4c]

InputTextField:file:///xxxx/ui/views/TIMUIKitChat/tim_uikit_chat.dart:375:33

When the exception was thrown, this was the stack:

0 MessageUtils.getAbstractMessage (package:tim_ui_kit/ui/utils/message.dart:352:16)

1 _InputTextFieldState._buildRepliedMessage (package:tim_ui_kit/ui/views/TIMUIKitChat/TIMUIKitTextField/tim_uikit_text_field.dart:232:81)

2 _InputTextFieldState.build (package:tim_ui_kit/ui/views/TIMUIKitChat/TIMUIKitTextField/tim_uikit_text_field.dart:570:9)

3 StatefulElement.build (package:flutter/src/widgets/framework.dart:4705:27)

4 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4588:15)

5 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4763:11)

6 Element.rebuild (package:flutter/src/widgets/framework.dart:4311:5)

7 StatefulElement.update (package:flutter/src/widgets/framework.dart:4795:5)