Comments (6)
Is this related to this PR-28?
I will look into this.
from animated_tree_view.
Is this related to this PR-28? I will look into this.
Not really. The thing here is that when I switch tabs, state get disposed. When re-enter on the tree tab I tried to reuse the Tree object. The root node is okay (gets reset to collapsed, but the remaining nodes that were previously get expanded, now are collapsed but its state say are expanded (you can see the ChevronIndicator
), so I must click twice on it to get well expanded.
I bypass this bug(?) by creating my own paralel Tree which save the expanded state and the children values. So when I re-enter on the Tree tab, I create a new Tree (your Tree) and re-install the state saved on my tree.
from animated_tree_view.
@busslina can you elaborate on your solution to bypass the bug(?) or post a code sippet
from animated_tree_view.
I just simply have a parallel tree in which I save the state. When I revisit this tab, I recreate the node states based on this parallel tree.
Seems that your node implementation is not prepared for a scenario where the page/container gets disposed and rebuilt again. They save the expanded state. But when they get recreated, they are not expanded but still have the expanded state.
I could pass my code, but it is just a patch. I recommend you to review your code and when the tree is re/build check the nodes and expand them if they are marked as exoanded
from animated_tree_view.
hi please send the patch, i am new to flutter and using the control in my app
from animated_tree_view.
hi please send the patch, i am new to flutter and using the control in my app
https://gist.github.com/busslina/e60a41ceca418151c491a730f12a57b0
If you want help to understand my code, ask me in the Gist
from animated_tree_view.
Related Issues (20)
- 2D Scrolling HOT 1
- How to load the tree data only when it is needed? HOT 4
- How to detect if node is expanding or shrinking in onItemTap method? HOT 1
- expandAllChildren HOT 3
- Get objects in the tree
- Expand on ExpansionIndicator tap instead of on Node tap HOT 3
- node.add() method causes break in linking tree lines: File explorer example HOT 3
- is Infinite nesting expands the fold list? HOT 1
- Please make AnimationController in ExpansionIndicatorState public
- v2.0.1 ,add node to rootNode will produce repeated subNode UI
- How to use with sticky headers?
- [Feature Request] Need indentationBuilder to customize indentation for different level
- UnimplementedError: combinePaths not implemented in HTML renderer [iOs Web]
- Flutter 3.22 breaks package in release mode
- How to change ListTile (child view) left Padding HOT 2
- AnimatedList Performance When Handling Complex Data HOT 9
- [bug] item duplicated HOT 1
- Node Style HOT 1
- onItemTap is sent also when tapping on expansion handle HOT 2
- expandNode performance issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animated_tree_view.