flutter ListView 报 RangeError (index): Invalid value: Only valid value is 0: 1
new ListView.builder(padding: const EdgeInsets.all(16.0),itemCount: _suggestions.length,itemBuilder: (context, index) {return _buildRow(_suggestions[index]);});加itemCount 属性
·
new ListView.builder(
padding: const EdgeInsets.all(16.0),
itemCount: _suggestions.length,
itemBuilder: (context, index) {
return _buildRow(_suggestions[index]);
});
加itemCount 属性
更多推荐
已为社区贡献2条内容
所有评论(0)