✨ Add Origin Text
Current State
Currently there is not a way to capture the original text that contributed to a LinkifyElement. Instead, only the modified text is available.
Desired State
A LinkifyElement has the property originText where the original text is captured.
Why
An example of this is when parsing text containing a URL i.e.
ssuper.co is one way to specify a website, https://ssuper.co is another way
If using humanize=False, we get this when we recreate the phrase from the parsed elements
https://ssuper.co is one way to specify a website, https://ssuper.co is another way
Or, if using humanize=True, we get this
ssuper.co is one way to specify a website, ssuper.co is another way
This is an issue when using Linkify to parse text for a TextEditingController. Because the original text is not recoverable from LinkifyElement, there is no way to reliably mirror the original text the user types. Having an originText property fixes this.
Current Workaround: https://stackoverflow.com/a/65914757
@Cretezy Let me know if I can do anything else to help get this across the line. Will put out a pull request to flutter_linkify to integrate this there as well.