@@ -1002,20 +1002,22 @@ class TextParser extends StatelessWidget {
1002
1002
if (childRichText is TextSpan ) {
1003
1003
return CleanRichText (
1004
1004
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,
1014
1005
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
+ ]),
1017
1019
inlineSpan
1018
- ]
1020
+ ],
1019
1021
),
1020
1022
maxLines: richText.maxLines,
1021
1023
textAlign: richText.textAlign,
0 commit comments