具体原因就是:
在Flutter 的 Column/Row 内使用ListView.builder()需要对改ListView的大小进行指定.
具体的解决办法就是 在该ListView.builder()外嵌套一个SizeBox或者Container设置高度即可。

 

Container(
    height: 200.0,
    child: ListView.builder(
        itemCount: 3,
        itemBuilder: _cellForRow,
    ),
),

 

相关文章:

  • 2021-12-08
  • 2022-01-18
  • 2021-04-01
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-10-05
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案