Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.79k stars 860 forks source link

[BUG] SelectableText not working with List (ul, ol) #1134

Closed kimmanwky closed 1 year ago

kimmanwky commented 2 years ago

The order list gone after changing Html to SelectableHtml. Used flutter_html: 3.0.0-alpha.5, runs on Android Emulators.

using Html:

Html(
   data: html,
 )

image

Using SelectableHtml

SelectableHtml(
   data: html,
 )

image

phillsch commented 1 year ago

I have the same issue. Anyone has a solution or workaround yet?

Sub6Resources commented 1 year ago

Please just use the normal Html widget and wrap it in a SelectionArea widget. SelectableHtml is slated to be removed in 3.0.0.

phillsch commented 1 year ago

Please just use the normal Html widget and wrap it in a SelectionArea widget. SelectableHtml is slated to be removed in 3.0.0.

Hi, i did this. But had to upgrade to Flutter Version 3.3 first, which took me at least half a day of work due to some changes in the flutter framework. At the end it worked, thanks

Sub6Resources commented 1 year ago

Glad it worked!