flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

SelectableHtml and custom widgets

Open asmith20002 opened this issue 3 years ago • 2 comments
trafficstars

The issue on flutter which you have listed in the description regarding selectable html: https://github.com/flutter/flutter/issues/38474

Seems to be solved/completed.

I like to be able to select text from html which has customRenders. (only the text selection is enough, ignoring custom widgets)

In normal Html() customRenders takes Map<bool Function(RenderContext), CustomRender> of which I have used CustomRender.widget() function.

The SelectableHtml() takes Map<bool Function(RenderContext), SelectableCustomRender> limiting me from using my custom widgets. SelectableCustomRender doesn't have a widget() function.

How can I have a selectable html on text only while keeping my custom widgets?

asmith20002 avatar Jul 12 '22 05:07 asmith20002

Have the same issue, would be glad if this could be added!

vsutedjo avatar Aug 01 '22 20:08 vsutedjo

Related #717, sorry for mistakenly referencing this issue above

dragnev-dev avatar Aug 19 '22 08:08 dragnev-dev

Any updates on this?

nicks258 avatar Mar 15 '23 09:03 nicks258

Yes I recommend you check out #1137 .

erickok avatar Mar 16 '23 15:03 erickok