Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kimmanwky opened this issue Sep 5, 2022 · 4 comments · Fixed by #1176
Closed

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

kimmanwky opened this issue Sep 5, 2022 · 4 comments · Fixed by #1176
Labels
bug Something isn't working in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize lists Issues with <ol>, <ul>, and <li> selectable-html

Comments

@kimmanwky
Copy link

kimmanwky commented Sep 5, 2022

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

@kimmanwky kimmanwky added the bug Something isn't working label Sep 5, 2022
@Sub6Resources Sub6Resources added selectable-html lists Issues with <ol>, <ul>, and <li> in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize labels Sep 6, 2022
@phillsch
Copy link

phillsch commented Nov 2, 2022

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

@Sub6Resources
Copy link
Owner

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
Copy link

phillsch commented Nov 3, 2022

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
Copy link
Owner

Glad it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize lists Issues with <ol>, <ul>, and <li> selectable-html
Projects
None yet
3 participants