Merge pull request #2034 from Kelrap/file-overflow
fix: Add flexible to file messages to prevent long name overflow
This commit is contained in:
commit
0aefd17809
1 changed files with 21 additions and 19 deletions
|
|
@ -53,26 +53,28 @@ class MessageDownloadContent extends StatelessWidget {
|
||||||
backgroundColor: textColor.withAlpha(32),
|
backgroundColor: textColor.withAlpha(32),
|
||||||
child: Icon(Icons.file_download_outlined, color: textColor),
|
child: Icon(Icons.file_download_outlined, color: textColor),
|
||||||
),
|
),
|
||||||
Column(
|
Flexible(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
Text(
|
children: [
|
||||||
filename,
|
Text(
|
||||||
maxLines: 1,
|
filename,
|
||||||
overflow: TextOverflow.ellipsis,
|
maxLines: 1,
|
||||||
style: TextStyle(
|
overflow: TextOverflow.ellipsis,
|
||||||
color: textColor,
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
color: textColor,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
Text(
|
||||||
Text(
|
'$sizeString | $filetype',
|
||||||
'$sizeString | $filetype',
|
maxLines: 1,
|
||||||
maxLines: 1,
|
overflow: TextOverflow.ellipsis,
|
||||||
overflow: TextOverflow.ellipsis,
|
style: TextStyle(color: textColor, fontSize: 10),
|
||||||
style: TextStyle(color: textColor, fontSize: 10),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue