小编Jos*_*uez的帖子

Flutter嵌套ListView.builder抛出错误

我想将两个ListView.builder放在一个小部件屏幕中,但出现以下错误:

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

mobile android ios flutter

0
推荐指数
1
解决办法
2553
查看次数

标签 统计

android ×1

flutter ×1

ios ×1

mobile ×1