diff --git a/lib/view/pages/talk/components/chatMessage.dart b/lib/view/pages/talk/components/chatMessage.dart index c18d2d1..c45f86c 100644 --- a/lib/view/pages/talk/components/chatMessage.dart +++ b/lib/view/pages/talk/components/chatMessage.dart @@ -39,11 +39,13 @@ class ChatMessage { return CachedNetworkImage( errorWidget: (context, url, error) { return Padding(padding: const EdgeInsets.only(top: 10), child: Row( + mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.center, children: [ const Icon(Icons.file_open_outlined, size: 35), const SizedBox(width: 10), - Expanded(child: Text(file!.name, style: const TextStyle(fontWeight: FontWeight.bold))) + Flexible(child: Text(file!.name, maxLines: 2, overflow: TextOverflow.ellipsis, style: const TextStyle(fontWeight: FontWeight.bold))), + const SizedBox(width: 10), ], )); },