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

TreeView and AnimatedTreeView does not refresh on treeController change #43

Closed
bambinoua opened this issue Mar 22, 2023 · 1 comment
Closed

Comments

@bambinoua
Copy link
Contributor

Below the simple code which I use:

BlocBuilder(
  builder: (context, state) {
    controller ??= FancyTreeController(); // controller can be re-created

    return AnimatedTreeView(
      treeController: controller,
      ...
    );
  },
)

If controller is re-created with new nodes (for example search result) the AnimatedTreeView is not refreshed. The similar issue in for TreeView.

@bambinoua bambinoua changed the title TreeView and AnimatedTreeView does not refreshed on treeController change TreeView and AnimatedTreeView does not refresh on treeController change Mar 22, 2023
@baumths
Copy link
Owner

baumths commented Mar 22, 2023

Fixed by #44

@baumths baumths closed this as completed Mar 22, 2023
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

2 participants