浏览代码

fix scroll error

/add_hero_sample
guanghuispark 3 年前
当前提交
45cf5503
共有 2 个文件被更改,包括 1 次插入4 次删除
  1. 3
      AwesomeUIWidgets/Assets/Scripts/ChatPage.cs
  2. 2
      AwesomeUIWidgets/Assets/Scripts/Widgets/chat_list.cs

3
AwesomeUIWidgets/Assets/Scripts/ChatPage.cs


using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;
using Unity.UIWidgets.widgets;
using UnityEditor.Build.Content;
using Random = System.Random;
using TextStyle = Unity.UIWidgets.ui.TextStyle;
namespace UIWidgetsSample

2
AwesomeUIWidgets/Assets/Scripts/Widgets/chat_list.cs


{
if (_oldIndex != null && _oldIndex.Count != 0 && !_oldIndex.Contains(message1.id))
{
_listKey.currentState?.insertItem(0);
_listKey.currentState?.insertItem(_oldIndex.Count -1);
}
}
}

正在加载...
取消
保存