fix: 无障碍控件错误导致评论区分行

This commit is contained in:
orz12
2024-03-13 20:26:40 +08:00
parent bb0d4d799b
commit 816b4658a9

View File

@@ -541,13 +541,9 @@ InlineSpan buildContent(
final RegExp pattern = RegExp(patternStr);
List<String> matchedStrs = [];
void addPlainTextSpan(str) {
spanChilds.add(WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: ExcludeSemantics(
child: Text(
str,
style: const TextStyle(height: 1.75),
))));
spanChilds.add(TextSpan(
text: str,
));
// TextSpan(
//
// text: str,