-
Notifications
You must be signed in to change notification settings - Fork 41
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
children动态变化的问题 #3
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
可能是实现的问题,我需要去测试一下 |
请问这个已经有解决方法了吗 我也是遇到这样问题 第三级就不行了 |
现在可以使用 v2 版本 |
我的需求是:点击树节点展开下一层级的时候,children 动态加载
实现方法是:在 tree_node 中添加了 didUpdateWidget 方法来监听 widget 变化
问题:目前只有第二级可以正常加载,第三级就监听不到 children 的变化了……
下面是相关代码:
这是生成TreeNode节点:
这是TreeNode class 中的 didUpdateWidget,点击展开第一级可以监听到children变化并正确展开第二级,但是点击第二级的时候就监听不到children变化了,children正确赋值了:
不知道我表述清楚了没,请教一下这么实现是ok的吗?为什么第三级不能正确展开呢?
The text was updated successfully, but these errors were encountered: