@@ -998,33 +998,29 @@ class TextParser extends StatelessWidget {
998
998
final childRichText = richText.child;
999
999
if (childRichText is TextSpan ) {
1000
1000
return CleanRichText (
1001
- TextSpan (
1002
- text: childRichText.text,
1003
- style: childRichText.style,
1004
- recognizer: childRichText.recognizer,
1005
- mouseCursor: childRichText.mouseCursor,
1006
- onEnter: childRichText.onEnter,
1007
- onExit: childRichText.onExit,
1008
- semanticsLabel: childRichText.semanticsLabel,
1009
- locale: childRichText.locale,
1010
- spellOut: childRichText.spellOut,
1011
- children: [
1012
- if (childRichText.children != null )
1013
- ...childRichText.children! ,
1014
- inlineSpan
1015
- ]
1016
- ),
1001
+ TextSpan (children: [
1002
+ TextSpan (
1003
+ text: childRichText.text,
1004
+ style: childRichText.style,
1005
+ recognizer: childRichText.recognizer,
1006
+ mouseCursor: childRichText.mouseCursor,
1007
+ onEnter: childRichText.onEnter,
1008
+ onExit: childRichText.onExit,
1009
+ semanticsLabel: childRichText.semanticsLabel,
1010
+ locale: childRichText.locale,
1011
+ spellOut: childRichText.spellOut,
1012
+ children: [
1013
+ if (childRichText.children != null ) ...childRichText.children! ,
1014
+ ],
1015
+ ),
1016
+ inlineSpan
1017
+ ]),
1017
1018
maxLines: richText.maxLines,
1018
1019
textAlign: richText.textAlign,
1019
1020
);
1020
1021
} else {
1021
1022
return CleanRichText (
1022
- TextSpan (
1023
- children: [
1024
- childRichText,
1025
- inlineSpan
1026
- ]
1027
- ),
1023
+ TextSpan (children: [childRichText, inlineSpan]),
1028
1024
maxLines: richText.maxLines,
1029
1025
textAlign: richText.textAlign,
1030
1026
);
0 commit comments