Browse Source

上传换行

newdev_shunjiawei
liwei1dao 10 months ago
parent
commit
624bdf18d5
  1. 5
      lib/modules/agent/views/message_bubble.dart

5
lib/modules/agent/views/message_bubble.dart

@ -166,6 +166,7 @@ class MessageBubble extends GetView<AgentController> {
// 如果是识别中的消息,添加特殊样式
if (isRecognizing) {
return Row(
crossAxisAlignment: CrossAxisAlignment.end,
mainAxisSize: MainAxisSize.min,
children: [
Flexible(
@ -177,7 +178,9 @@ class MessageBubble extends GetView<AgentController> {
fontSize: 14,
height: 1.4,
),
overflow: TextOverflow.ellipsis,
// 允许自动换行,不再强制单行
softWrap: true,
maxLines: null,
),
),
const SizedBox(width: 8),

Loading…
Cancel
Save