is there a decent tree component that supports keyboard navigation and scrolling to a selected entry?
r
rob42
07/14/2024, 9:27 AM
I didn't find one when I looked. Had to roll my own.
There are some tricky implementation details with scrolling to selected items, because you typically want to pin the selection near the top/bottom edges based on the direction of travel.
BringIntoViewRequester also doesn't work on lazy lists, which would have been ideal if it did.
j
JAmes
07/14/2024, 5:24 PM
That's basically what's glitching on my home brew tree.. and randomly it loses keyboard focus. 😅 I'm also p new to both Kotlin and Compose and feel like rolling my own tree component is a bit too deep end for me right now.