-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Ability to use with VerticalScrollbar
#13
Comments
I also need to use Bonsai tree component inside drawer and it looks like it's not possible for now 😢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to use a
VerticalScrollbar
composable alongside the tree, both to give an indication of where it currently is, but also to allow scrolling through the tree much faster when there are millions of nodes in the tree.VerticalScrollbar
needs to be given the sameLazyListState
you give to theLazyColumn
- but the current API gives me no way to pass this in.As an aside, I did try adding 1,000,000 items to a tree, and it became ultra slow to expand the tree. It's quite possible I'm using the API incorrectly though, I just created a Branch and then called Leaf 1,000,000 times, similar to what I was doing for my existing code.
My own tree prototype from tonight's effort can add 1,000,000 items with no noticeable delay, but has multiple deficiencies I'd have to fix to make it usable in production, so I'm exploring all the other options out there before I resort to writing a tree component myself.
The text was updated successfully, but these errors were encountered: