Fixed message width for files and limited filename to two lines
This commit is contained in:
parent
6c3b99ffa4
commit
948ee19bda
@ -39,11 +39,13 @@ class ChatMessage {
|
|||||||
return CachedNetworkImage(
|
return CachedNetworkImage(
|
||||||
errorWidget: (context, url, error) {
|
errorWidget: (context, url, error) {
|
||||||
return Padding(padding: const EdgeInsets.only(top: 10), child: Row(
|
return Padding(padding: const EdgeInsets.only(top: 10), child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const Icon(Icons.file_open_outlined, size: 35),
|
const Icon(Icons.file_open_outlined, size: 35),
|
||||||
const SizedBox(width: 10),
|
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),
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user