Skip to content

Commit f800cd6

Browse files
author
Julian KOUNE
committed
TW-818: prevent inlineSpanEnd from getting main span styles
1 parent 6b39a25 commit f800cd6

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

lib/text_parser.dart

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,20 +1002,22 @@ class TextParser extends StatelessWidget {
10021002
if (childRichText is TextSpan) {
10031003
return CleanRichText(
10041004
TextSpan(
1005-
text: childRichText.text,
1006-
style: childRichText.style,
1007-
recognizer: childRichText.recognizer,
1008-
mouseCursor: childRichText.mouseCursor,
1009-
onEnter: childRichText.onEnter,
1010-
onExit: childRichText.onExit,
1011-
semanticsLabel: childRichText.semanticsLabel,
1012-
locale: childRichText.locale,
1013-
spellOut: childRichText.spellOut,
10141005
children: [
1015-
if (childRichText.children != null)
1016-
...childRichText.children!,
1006+
TextSpan(
1007+
text: childRichText.text,
1008+
style: childRichText.style,
1009+
recognizer: childRichText.recognizer,
1010+
mouseCursor: childRichText.mouseCursor,
1011+
onEnter: childRichText.onEnter,
1012+
onExit: childRichText.onExit,
1013+
semanticsLabel: childRichText.semanticsLabel,
1014+
locale: childRichText.locale,
1015+
spellOut: childRichText.spellOut,
1016+
children: [
1017+
if (childRichText.children != null) ...childRichText.children!,
1018+
]),
10171019
inlineSpan
1018-
]
1020+
],
10191021
),
10201022
maxLines: richText.maxLines,
10211023
textAlign: richText.textAlign,

0 commit comments

Comments
 (0)