Closed FycGitHub closed 2 years ago
var item = buildItem(context, index); data.removeAt(index); print('删除 ${data[index]}');
Should be changed to var item = buildItem(context, index); print('删除 ${data[index]}'); data.removeAt(index);
https://book.flutterchina.club/chapter6/animatedlist.html 第六章 可滚动组件 6.5中的案例代码
此示例,若点击删除过快,会发生数组越界的异常
get
var item = buildItem(context, index); data.removeAt(index); print('删除 ${data[index]}');
Should be changed to var item = buildItem(context, index); print('删除 ${data[index]}'); data.removeAt(index);