embraceitmobile / animated_tree_view

Animated TreeView based on AnimatedList allows building fully customizable Nodes that can be nested to infinite levels and children.
https://pub.dev/packages/animated_tree_view
MIT License
69 stars 30 forks source link

[bug] item duplicated #54

Open bughoho opened 2 months ago

bughoho commented 2 months ago

https://github.com/user-attachments/assets/27fdc233-2e44-444c-be97-ea7e36cfdb10

I placed the TreeView on the second page of the PageView, the first time it entered normal, the second time there were duplicate items, or the expansion status was inconsistent.

jawwad-hassan89 commented 2 months ago

Hi @bughoho, it seems that the TreeView is getting rebuilt when you change the page, which is causing the inconsistent behaviour. Try these steps to solve this issue:

Let me know if this solves your issue.