【发布时间】:2018-05-19 19:04:23
【问题描述】:
在为无限滚动提供here 的示例中,它会在到达末尾时再添加10 个项目。
if (index >= _suggestions.length) {
// ...then generate 10 more and add them to the suggestions list.
_suggestions.addAll(generateWordPairs().take(10));
}
我不明白的是,即使他们没有调用 setState(),ListView 是如何更新的?
【问题讨论】: