标签:art ror 解决方法 erro new sub err container view
The following RangeError was thrown building KeyedSubtree-[<0>]:
RangeError (index): Invalid value: Valid value range is empty: 0
运行时还没获取到数据,就执行了 类似这样的数据输出,
child: Text(‘${this._newsDataList[index].title}‘
添加 this._newsDataList.length > 0
return this._newsDataList.length > 0
? ListView.builder(
...
)
: Container(
margin: EdgeInsets.all(ScreenAdapter.setHeight(20)),
height: ScreenAdapter.setHeight(800),
);
标签:art ror 解决方法 erro new sub err container view
原文地址:https://www.cnblogs.com/TobuTobu/p/14350918.html