fix(descriptions): Issue-540

This commit is contained in:
mso7nueh
2025-07-02 14:33:12 +03:00
parent 3ce6caa0af
commit 0926b50537
9 changed files with 15 additions and 11 deletions

View File

@@ -128,8 +128,8 @@ class _ProfileBlogPostWidgetState extends State<ProfileBlogPostWidget> {
padding: const EdgeInsets.symmetric(horizontal: 4),
child: Html(
data: state.blogPosts[widget.index].description.length > 200
? state.blogPosts[widget.index].description.substring(0, 200)
: state.blogPosts[widget.index].description,
? state.blogPosts[widget.index].description.substring(0, 200).replaceAll('\n', '<br>')
: state.blogPosts[widget.index].description.replaceAll('\n', '<br>'),
style: {
"*": Style(
fontSize: FontSize(16),