diff --git a/lib/chat/ChatPageItem.dart b/lib/chat/ChatPageItem.dart index e0c0da1..8e64096 100644 --- a/lib/chat/ChatPageItem.dart +++ b/lib/chat/ChatPageItem.dart @@ -189,7 +189,7 @@ class _ChatPageItemState extends State return Container( width: Screen.width, - margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 8), + margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 4), child: Column( children: [ showTime == null diff --git a/lib/chat/file_msg_item.dart b/lib/chat/file_msg_item.dart index d544c56..131273c 100644 --- a/lib/chat/file_msg_item.dart +++ b/lib/chat/file_msg_item.dart @@ -93,6 +93,7 @@ class FileMsgItem extends StatelessWidget { children: [ Container( child: fixedText(name, fontSize: 13), + padding: EdgeInsets.only(bottom: 2), constraints: BoxConstraints( maxWidth: Screen.width - 120 - 122, maxHeight: 50), ), diff --git a/lib/chat/group_chat_item.dart b/lib/chat/group_chat_item.dart index 9fdc4ec..2cbe02b 100644 --- a/lib/chat/group_chat_item.dart +++ b/lib/chat/group_chat_item.dart @@ -189,7 +189,7 @@ class _GroupChatPageItemState extends State return Container( width: Screen.width, color: Colors.white.withOpacity(0), - margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 8), + margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 4), child: Column( children: [ showTime == null diff --git a/lib/home/send_msg_state.dart b/lib/home/send_msg_state.dart index 62b5f50..f3036aa 100644 --- a/lib/home/send_msg_state.dart +++ b/lib/home/send_msg_state.dart @@ -21,12 +21,12 @@ class _SendMsgStateState extends State { if (msg.state == MsgState.SendingFailed) { return Padding( - padding: EdgeInsets.only(right: 10), + padding: EdgeInsets.only(right: 5), child: Icon(Icons.error_outline, - size: 12, color: Color(0xFFc0c0c0))); + size: 12, color: Colors.red)); } else if (msg.state <= MsgState.Sending) { return Padding( - padding: EdgeInsets.only(right: 10), + padding: EdgeInsets.only(right: 5), child: Icon( IconData(0xe657, fontFamily: Constants.IconFontFamily), size: 12, diff --git a/lib/utils/HttpUtil.dart b/lib/utils/HttpUtil.dart index 90ec477..9aa5e34 100644 --- a/lib/utils/HttpUtil.dart +++ b/lib/utils/HttpUtil.dart @@ -1102,8 +1102,9 @@ class HttpUtil { showToast('请稍后再试'); return; } - data['content'] = - base64Encode(File(msgModel.localFile).readAsBytesSync()); + data['content'] = base64Encode(File(msgModel.localFile).readAsBytesSync()); + print('语音转换的文字: ${utf8.decode(msgModel.enTranslateContent)}'); + data['vcontent'] = base64Encode(msgModel.enTranslateContent); } data["tuserids"] = [UserData().basicInfo.userId]; @@ -1124,7 +1125,7 @@ class HttpUtil { if (msgModel.translateContent != null && msgModel.translateContent.length > 0) { - data['mcontent'] = base64Encode(msgModel.enTranslateContent); + data['mcontent'] = base64Encode(msgModel.translateContent); } Response res =