Flutter_html: text highlighting

Created on 8 Jul 2020  路  8Comments  路  Source: Sub6Resources/flutter_html

Would you add support for text highlighting ?

Most helpful comment

Yes, this is a duplicate of #169. I will be taking a harder look at this over the next coming week to see how hard it would be to implement. I'll be closing this because it is a duplicate

All 8 comments

You mean like code highlighting?
I guess this would be overkill. You can easily write a custom renderer for a <code></code> block with your own syntax highligting. There are a few packages for that available.

i meant user be able to select and highlight text contents rendered within the html kind of like a browser.

I need this functionality as well.
It would basically equates to replacing a Text() by a SelectableText().
It could take the form of a boolean parameter called selectable.

This library doesn't use Text widget. It uses RichText widgets. As far as I know RichText doesn't support selectable text.

I meant it more as an analogy, but actually if this helps :
Selectable has a named constructor for rich text : SelectableText.rich()

Please this functionality is really needed.

I just noticed that this issue is a duplicate of #169, which is the most upvoted issue on this repo.

Yes, this is a duplicate of #169. I will be taking a harder look at this over the next coming week to see how hard it would be to implement. I'll be closing this because it is a duplicate

Was this page helpful?
0 / 5 - 0 ratings