flutter - RenderIndexedSemantics 对象在布局期间被赋予无限大小
问题描述
当我listviewbuilder
用于我的应用程序时出现此错误这是我的代码
ListView.builder(
padding: const EdgeInsets.all(0),
itemCount: 1,
itemBuilder: (BuildContext context, int index) {
return Scaffold(
body: SafeArea( //and the rest of codes...
解决方案
设置错误。
应该是这样的
SafeArea(
child: Scaffold(
body:ListView.builder();
),
推荐阅读
- javascript - 在保持纵横比的同时旋转画布图像
- java - 同一活动中 Edittext 的多个日期选择器
- javascript - sinon spy 不在生成器循环中注册调用?
- python - 打印列表的前 n 个不同值
- python - 无法导入最近创建的包
- javascript - React konva 在渲染数组时仅对 1 个矩形应用 x 变化
- netsuite - 从 netsuite 为客户获取子列表
- c# - 即使我强制 .include 延迟加载也无法正常工作
- javascript - SVG 或 Canvas,如何按坐标和 div 大小切割正方形
- c++ - 有效地查找 Boost BGL 图中的所有可到达顶点