mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
fix: Too long file name cause a render overflow
This commit is contained in:
parent
e838253ba6
commit
1088eb0500
1 changed files with 10 additions and 7 deletions
|
@ -37,14 +37,17 @@ class MessageDownloadContent extends StatelessWidget {
|
|||
color: textColor,
|
||||
),
|
||||
const SizedBox(width: 16),
|
||||
Text(
|
||||
filename,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
color: textColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
Flexible(
|
||||
child: Text(
|
||||
filename,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
color: textColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue