Comments (4)
Hi @swframe,
Sorry for reaching to you directly, but I was wondering if you've managed to find a solution to this issue?
We're also looking to lazy load list of files within folders and hoped there is an example here before we scratch heads ourselves.
from animated_tree_view.
I wrote a temporary solution but it repaints the tree when the nodes open/close.
I store the nodes that are opened and when that Set changes I completely rebuild the tree.
I only load the children if the node is in the 'opened' set. I cache the children so once they
are loaded, they are not reloaded until the cache expires. I add a fake child to each node that
is closed so the UI will draw '>' to let the user know the node is not a leaf.
This is really hacky but it allows me to work on other features.
I will continue to work on it to implement a more efficient way to open and close
without needing to rebuild the entire tree widget. It shouldn't be too hard.
from animated_tree_view.
Thanks, we've addressed some of these issues and provided lazy load example: main...tomekit:animated_tree_view:main#diff-2f45cb6453ada31c3ecd0f5cc5e11dedac8361c32f724278a9ccb4b749dbd435
There shouldn't be need to add fake child items or repaint tree.
I am not sure what else might come up at this stage, but with these changes we're happy to integrate it within our project.
from animated_tree_view.
Thanks! I will try it out.
from animated_tree_view.
Related Issues (20)
- 2D Scrolling HOT 1
- 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.