fix: code cannot be wrap
I think it is a wrong fix for link, '\n' should not be replaceAll, so I think this should be reverted
This commit is contained in:
parent
bc73a5da95
commit
f0cc00c04a
1 changed files with 11 additions and 14 deletions
|
|
@ -49,8 +49,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
final linkifiedRenderHtml = linkify(
|
||||
renderHtml,
|
||||
options: const LinkifyOptions(humanize: false),
|
||||
)
|
||||
.map(
|
||||
).map(
|
||||
(element) {
|
||||
if (element is! UrlElement ||
|
||||
element.text.contains('<') ||
|
||||
|
|
@ -60,9 +59,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
}
|
||||
return '<a href="${element.url}">${element.text}</a>';
|
||||
},
|
||||
)
|
||||
.join('')
|
||||
.replaceAll('\n', '');
|
||||
).join('');
|
||||
|
||||
final linkColor = textColor.withAlpha(150);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue