I'm trying to implement editable Text myself, and ...
# compose-desktop
k
I'm trying to implement editable Text myself, and I'm stuck right at the beginning - how to show the cursor when the user clicks somewhere in the text? ClickableText gives me the index of the clicked character, but that's not enough to show the cursor - I need the pixel position and the height of the cursor to display. Any pointers appreciated...
It seems that BasicTextField and onTextLayout should do the trick... mabye?
k
thanks, will take a look at that as well!
ClickableText.kt is actually pretty illuminating! It might actually work 😉