-
Notifications
You must be signed in to change notification settings - Fork 23
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
Content of Node is not refreshing #9
Comments
Ok, I will try the situation you said, please wait a moment. |
Hi buddy, now you can refresh the data with _controller.rebuild(). I'll make it easier to refresh the data and fix it when I have time. |
Thanks for your response! Could you reproduce the issue? Thanks |
Hey you did not update the extension. There is no new version. |
Hey, have you found any solution for content refreshing? |
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Nope. Still no solution. |
Hey! I got the solution for a content refresh. setState(() { |
@Bonnyfication You can use this function _controller!.rebuild(); |
这是一封自动回复邮件。已经收到您的来信,我会尽快回复。
|
Hey,
we use BloC to handle our state of the View. After a navigation event and returning to the view that contains the ListTreeView i reload the Data that is displayed by the ListTreeView.
If i set the treeData() a second time, the itemBuilder of the ListTreeView uses the old data of the initial TreeData() call.
How can i force the ListTreeView to reload the Data so changes are displayed?
In my example i have an item with an int value that is display in the ListTreeView. Inside the itemBuilder i do something like this:
As i said this is working fine the first time, but when i reload the data and the build() method is retriggered the Data in the itemBuilder function is not refreshed. I checked the data i pass to treeData() and it is definitly the new data. But still the itemBuilder uses the data of the first set of treeData().
I managed to refresh the Parent items by resetting the TreeViewController
treeViewController = new TreeViewController();
but this leads to only the parents showing up. All child elements are missing after the second rebuild if i do this.
Thanks in advance
The text was updated successfully, but these errors were encountered: