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

Page ListView在底层不显示时更新界面 #763

Closed
JefferyBoy opened this issue Jul 9, 2021 · 0 comments
Closed

Page ListView在底层不显示时更新界面 #763

JefferyBoy opened this issue Jul 9, 2021 · 0 comments

Comments

@JefferyBoy
Copy link

我遇到一个需求,FirstPage跳转到SecondPage,在SecondPage修改了某些参数后,通过Stream通知到FirstPage更新ListView。发现FirstPage中收到了事件流,也发送了UpdataListAction,同时也打印了firstPage的didUpdateWidget日志,但是列表没有变化。

I/flutter ( 1122): ---------- [HomePage] ----------
//第一个界面收到事件流后更新列表,试过这里把列表重新new对象和清空都无效
I/flutter ( 1122): [HomePage] MainHomeAction.updateList null
I/flutter ( 1122): ========== [HomePage] ================
I/flutter ( 1122): HomePage Lifecycle.build
I/flutter ( 1122): HomePage Lifecycle.didUpdateWidget

请问,我应该如何让FirstPage在后台不显示时更新界面呢,这样按返回时能看到更新后的内容。

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