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,
|
color: textColor,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
Text(
|
Flexible(
|
||||||
filename,
|
child: Text(
|
||||||
maxLines: 1,
|
filename,
|
||||||
style: TextStyle(
|
maxLines: 1,
|
||||||
color: textColor,
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.bold,
|
color: textColor,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue