renderObject.setFlatChildren expects List<RenderBox>, not List<RenderObject>.
Attach a file by drag & drop or click to upload