I'm new to flutter and I need an editor that can format certain words (e.g., automatic URL detection and formatting it to blue inside the editor). So far, I have not found a plugin for that so I decided to write my own plugin.
The question here is: where do I start?
I've tried using a Rich.text()
with TextSpan
as children but I can't edit those children. I've tried using a SizedBox
with inside of it an EditableText
but I encountered 2 problems.
- The
fontSize
ofEditableText
always differs from thefontSize
of aTextSpan
, no matter if I apply the sameTextStyle
(this really frustrates me) - The whole
Rich.text()
doesn't work as a single editor, which is what I'm trying to achieve.
Could someone point me into the right direction? Thanks in advance!