From 9fd79a3e00055e4b3671e4a55fa94cfe56aac36c Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Fri, 11 Dec 2020 10:15:07 +0100 Subject: [PATCH] fix urlattachment title --- lib/src/url_attachment.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/url_attachment.dart b/lib/src/url_attachment.dart index d735ad67..ad314455 100644 --- a/lib/src/url_attachment.dart +++ b/lib/src/url_attachment.dart @@ -78,8 +78,9 @@ class UrlAttachment extends StatelessWidget { children: [ if (urlAttachment.title != null) Text( - urlAttachment.title, + urlAttachment.title.trim(), maxLines: 1, + overflow: TextOverflow.ellipsis, style: TextStyle( fontWeight: FontWeight.w700, fontSize: 12.0,