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

@@ -137,7 +137,7 @@ class _PlanWidgetState extends State<PlanWidget> {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Html(
data: widget.plan.details.length > 200 ? '${widget.plan.details.substring(0, 200)}...' : widget.plan.details,
data: widget.plan.details.length > 200 ? '${widget.plan.details.substring(0, 200).replaceAll('\n', '<br>')}...' : widget.plan.details.replaceAll('\n', '<br>'),
style: {
"*": Style(
margin: Margins.zero,