We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果我增加一条数据,是调用了chatObserver.standby(changeCount: count),然后scrollView_observer就把isShrinkWrap修改为了false,有什么办法在我第一次进入聊天,根据当前数据多少,来修改isShrinkWrap的值,现在貌似第一次进入聊天,isShrinkWrap都是true
The text was updated successfully, but these errors were encountered:
可以在加载完数据并完成布局后手动触发一次观察,来校正 isShrinkWrap
isShrinkWrap
WidgetsBinding.instance.addPostFrameCallback((timeStamp) { chatObserver.observeSwitchShrinkWrap(); });
Sorry, something went wrong.
好的,解决了,谢谢
在 1.16.5 版本中,初始化时做了一次校正,不用再自己手动触发,请升级试试看吧
1.16.5
No branches or pull requests
如果我增加一条数据,是调用了chatObserver.standby(changeCount: count),然后scrollView_observer就把isShrinkWrap修改为了false,有什么办法在我第一次进入聊天,根据当前数据多少,来修改isShrinkWrap的值,现在貌似第一次进入聊天,isShrinkWrap都是true
The text was updated successfully, but these errors were encountered: