Skip to content
New issue

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

flutter热重载时 list刷新 #43

Open
git-xiaocao opened this issue Jul 13, 2022 · 1 comment
Open

flutter热重载时 list刷新 #43

git-xiaocao opened this issue Jul 13, 2022 · 1 comment

Comments

@git-xiaocao
Copy link

如题

@git-xiaocao
Copy link
Author

通过把 LoadingMoreList 改为StatefulWidget 已解决这个问题
因为 ListConfig 不是const 构造器 LoadingMoreBase也不是const构造器 会在rebuild的时候重新创建一个新的
然后导致每次热重载都要重新请求数据

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant