相关疑难解决方法(0)

Flutter:“RenderFlex 子项具有非零 flex,但传入的高度约束是无界的”

ListView当我FutureBuilder用 a包装时,我想在另一个小部件内部有一个小部件Column,以便有一个简单的Row. 我收到此错误:

The following assertion was thrown during performLayout():
I/flutter (13816): RenderFlex children have non-zero flex but incoming height constraints are unbounded.
I/flutter (13816): When a column is in a parent that does not provide a finite height constraint, for example, if it is
I/flutter (13816): in a vertical scrollable, it will try to shrink-wrap its children along the vertical axis. Setting a
I/flutter (13816): flex on a child (e.g. using Expanded) …
Run Code Online (Sandbox Code Playgroud)

dart flutter flutter-layout

52
推荐指数
3
解决办法
7万
查看次数

标签 统计

dart ×1

flutter ×1

flutter-layout ×1