Unverified Commit b47a25ce authored by Vyacheslav Egorov's avatar Vyacheslav Egorov Committed by GitHub

Strong mode fix in Table._updateRenderObjectChildren (#14108)

renderObject.setFlatChildren expects List<RenderBox>, not List<RenderObject>.
parent d9fd4d6f
......@@ -340,7 +340,12 @@ class _TableElement extends RenderObjectElement {
assert(renderObject != null);
renderObject.setFlatChildren(
_children.isNotEmpty ? _children[0].children.length : 0,
_children.expand((_TableElementRow row) => row.children.map((Element child) => child.renderObject)).toList()
_children.expand<RenderBox>((_TableElementRow row) {
return row.children.map<RenderBox>((Element child) {
final RenderBox box = child.renderObject;
return box;
});
}).toList()
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment