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

Ability to use with VerticalScrollbar #13

Open
hakanai opened this issue Feb 28, 2023 · 1 comment
Open

Ability to use with VerticalScrollbar #13

hakanai opened this issue Feb 28, 2023 · 1 comment

Comments

@hakanai
Copy link

hakanai commented Feb 28, 2023

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 same LazyListState you give to the LazyColumn - 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.

@yurijdvornyk
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants