浏览代码

fix sliver bug

/main
Xingwei Zhu 3 年前
当前提交
e34ff5b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.uiwidgets/Runtime/widgets/sliver.cs

2
com.unity.uiwidgets/Runtime/widgets/sliver.cs


int index = _keyToIndex.getOrDefault(_defaultNullKey);
while (index < children.Count) {
Widget child = children[index];
if (child.key != _defaultNullKey) {
if (child.key != null && child.key != _defaultNullKey) {
_keyToIndex[child.key] = index;
}
if (child.key == key) {

正在加载...
取消
保存