Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-18 12:02:42 +08:00
parent 8e4824ab6f
commit 3d4aa7d5a9
13 changed files with 71 additions and 76 deletions

View File

@@ -68,18 +68,13 @@ TextSpan? richNode(
if (i.origText == _linkFoldedText) {
item.linkFolded = true;
}
spanChildren.add(
TextSpan(
text: i.origText,
style: const TextStyle(height: 1.65),
),
);
spanChildren.add(TextSpan(text: i.origText));
break;
// @用户
case 'RICH_TEXT_NODE_TYPE_AT':
spanChildren.add(
TextSpan(
text: ' ${i.text}',
text: '${spanChildren.isNotEmpty ? ' ' : ''}${i.text}',
style: style,
recognizer: NoDeadlineTapGestureRecognizer()
..onTap = () => Get.toNamed('/member?mid=${i.rid}'),
@@ -365,7 +360,10 @@ TextSpan? richNode(
break;
}
}
return TextSpan(children: spanChildren);
return TextSpan(
children: spanChildren,
style: const TextStyle(height: 1.65),
);
}
} catch (err) {
if (kDebugMode) debugPrint('❌rich_node_panel err: $err');