Reland "Text inline widgets, TextSpan rework (#30069)" with improved backwards compatibility (#34051)

This commit is contained in:
Gary Qian
2019-06-07 15:47:23 -07:00
committed by GitHub
parent 4cc6880cb2
commit c2eaf8359d
26 changed files with 2513 additions and 242 deletions

View File

@@ -145,7 +145,7 @@ class _FuzzerState extends State<Fuzzer> with SingleTickerProviderStateMixin {
return TextSpan(
text: _fiddleWithText(node.text),
style: _fiddleWithStyle(node.style),
children: _fiddleWithChildren(node.children?.map((TextSpan child) => _fiddleWith(child))?.toList() ?? <TextSpan>[]),
children: _fiddleWithChildren(node.children?.map((InlineSpan child) => _fiddleWith(child))?.toList() ?? <InlineSpan>[]),
);
}