I have an application that supports chat message tagging and uses this package for formatting tags. When a user copies a message with a tagged user, then pastes into the TextField, the text displays as the unformatted tag string (e.g. @someuser#JohnDoe#). I would like to support the ability to paste messages and have the text automatically formatted.
What I have tried: In the onChanged callback in the TextField, I call .formatTags(), but any additional calls to onChange affect the currently formatted tags (It appears .formatTags() is not idempotent).
If there is a known workaround/feature for this, please let me know. If you think this is possible, let me know, and I can potentially open a PR.
Thank you!
I have an application that supports chat message tagging and uses this package for formatting tags. When a user copies a message with a tagged user, then pastes into the TextField, the text displays as the unformatted tag string (e.g. @someuser#JohnDoe#). I would like to support the ability to paste messages and have the text automatically formatted.
What I have tried: In the onChanged callback in the TextField, I call .formatTags(), but any additional calls to onChange affect the currently formatted tags (It appears .formatTags() is not idempotent).
If there is a known workaround/feature for this, please let me know. If you think this is possible, let me know, and I can potentially open a PR.
Thank you!