Adding custom line for url attachment

This commit is contained in:
Leandro Borges Ferreira
2023-02-02 17:42:49 +01:00
parent 4563abaaef
commit 02ab954048
3 changed files with 18 additions and 4 deletions
@@ -107,7 +107,7 @@ class StreamUrlAttachment extends StatelessWidget {
if (urlAttachment.title != null)
Text(
urlAttachment.title!.trim(),
maxLines: 1,
maxLines: messageTheme.urlLinkTitleMaxLine ?? 1,
overflow: TextOverflow.ellipsis,
style: chatThemeData.textTheme.body
.copyWith(fontWeight: FontWeight.w700),