ZCM 5 лет назад
Родитель
Сommit
1cb9289cc1
5 измененных файлов: 10 добавлений и 8 удалений
  1. +1
    -1
      lib/chat/ChatPageItem.dart
  2. +1
    -0
      lib/chat/file_msg_item.dart
  3. +1
    -1
      lib/chat/group_chat_item.dart
  4. +3
    -3
      lib/home/send_msg_state.dart
  5. +4
    -3
      lib/utils/HttpUtil.dart

+ 1
- 1
lib/chat/ChatPageItem.dart Просмотреть файл

@@ -189,7 +189,7 @@ class _ChatPageItemState extends State<ChatPageItem>
return Container( return Container(
width: Screen.width, width: Screen.width,
margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 8),
margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 4),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
showTime == null showTime == null


+ 1
- 0
lib/chat/file_msg_item.dart Просмотреть файл

@@ -93,6 +93,7 @@ class FileMsgItem extends StatelessWidget {
children: <Widget>[ children: <Widget>[
Container( Container(
child: fixedText(name, fontSize: 13), child: fixedText(name, fontSize: 13),
padding: EdgeInsets.only(bottom: 2),
constraints: BoxConstraints( constraints: BoxConstraints(
maxWidth: Screen.width - 120 - 122, maxHeight: 50), maxWidth: Screen.width - 120 - 122, maxHeight: 50),
), ),


+ 1
- 1
lib/chat/group_chat_item.dart Просмотреть файл

@@ -189,7 +189,7 @@ class _GroupChatPageItemState extends State<GroupChatPageItem>
return Container( return Container(
width: Screen.width, width: Screen.width,
color: Colors.white.withOpacity(0), 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( child: Column(
children: <Widget>[ children: <Widget>[
showTime == null showTime == null


+ 3
- 3
lib/home/send_msg_state.dart Просмотреть файл

@@ -21,12 +21,12 @@ class _SendMsgStateState extends State<SendMsgState> {
if (msg.state == MsgState.SendingFailed) { if (msg.state == MsgState.SendingFailed) {
return Padding( return Padding(
padding: EdgeInsets.only(right: 10),
padding: EdgeInsets.only(right: 5),
child: Icon(Icons.error_outline, child: Icon(Icons.error_outline,
size: 12, color: Color(0xFFc0c0c0)));
size: 12, color: Colors.red));
} else if (msg.state <= MsgState.Sending) { } else if (msg.state <= MsgState.Sending) {
return Padding( return Padding(
padding: EdgeInsets.only(right: 10),
padding: EdgeInsets.only(right: 5),
child: Icon( child: Icon(
IconData(0xe657, fontFamily: Constants.IconFontFamily), IconData(0xe657, fontFamily: Constants.IconFontFamily),
size: 12, size: 12,


+ 4
- 3
lib/utils/HttpUtil.dart Просмотреть файл

@@ -1102,8 +1102,9 @@ class HttpUtil {
showToast('请稍后再试'); showToast('请稍后再试');
return; 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]; data["tuserids"] = [UserData().basicInfo.userId];
@@ -1124,7 +1125,7 @@ class HttpUtil {
if (msgModel.translateContent != null && if (msgModel.translateContent != null &&
msgModel.translateContent.length > 0) { msgModel.translateContent.length > 0) {
data['mcontent'] = base64Encode(msgModel.enTranslateContent);
data['mcontent'] = base64Encode(msgModel.translateContent);
} }
Response res = Response res =


Загрузка…
Отмена
Сохранить