Would like to hear from folks has anyone tried tok...
# compose
r
Would like to hear from folks has anyone tried tokenizing textfield in compose with @mentions. Would love to hear the approach taken.
z
What do you mean by “tokenize”?
r
When user types @ you show list of users in drop down. When user chooses a user it is replaced and made blue just like twitter or fb.
I am interested in how the replacement is done and styling using annotated spans. Do we need visualtransformation or some range or regex??
z
I think there's articles or at least other discussions in this slack from people who have actually built this successfully. I'm not sure what the best approach is, but one thing you could do is use a FlowRow from accompanist and insert all your tokens before the field
r
Thanks!. In case you find articles can you link it here?.