mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-24 12:30:12 +08:00
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user