Hi everyone, is there a way to change the `LocalTe...
# compose
j
Hi everyone, is there a way to change the
LocalTextToolbar
items dynamically when selecting part of the text in a
BaiscTextField
?
h
You can hoist your
MutableState<TextFieldValue>
above where you intercept
LocalTextToolbar
. According to current contents of the field, and the current selection, you can choose which items to show.
j
I see that when the selection is collapsed is not possible to open the
LocalTextToolbar
but I want to open it in special cases when the selection is collapsed is also this behavior possible?