📜  断言失败:package:flutter ... 渲染 box.dart:1930 hasSize "RenderBox 未布置:RenderRepaintBoundary#7e1b3 NEEDS-PAINT - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:07.144000             🧑  作者: Mango

代码示例1
You're trying to use ListView.builder in a FutureBuilder which has no sizes in a Column, so you need to constrain it somehow – either with SizedBox(height: 300, child: ListView.builder()) or with Expanded widget

Check out this article https://flutter.dev/docs/development/ui/layout/constraints