fix: Too long file name cause a render overflow

This commit is contained in:
Skying 2023-05-16 16:55:19 +00:00 committed by Krille
parent 0d12c31393
commit 15b655413d

View File

@ -37,14 +37,17 @@ class MessageDownloadContent extends StatelessWidget {
color: textColor, color: textColor,
), ),
const SizedBox(width: 16), const SizedBox(width: 16),
Text( Flexible(
child: Text(
filename, filename,
maxLines: 1, maxLines: 1,
style: TextStyle( style: TextStyle(
color: textColor, color: textColor,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
overflow: TextOverflow.ellipsis,
), ),
)
], ],
), ),
), ),