8000 [BUG] SelectableHtml not displaying <ul> or <li> · Issue #1162 · Sub6Resources/flutter_html · GitHub
[go: up one dir, main page]

Skip to content
[BUG] SelectableHtml not displaying <ul> or <li>  #1162
Closed
@eMxPi

Description

@eMxPi

Describe the bug:
When Using SelectableHTML on Flutter 3.0.5, html text with <ul> or </li> are skipped.

Capture d’écran 2022-10-10 à 14 20 05

Steps to Reproduce
Create a widget based on SelectableHtml and ask it to display html data containing <ul> and </li>

Actual results:
Text being displayed when using Html widget
Capture d’écran 2022-10-10 à 14 12 35
But not displayed with SelectableHtml
Capture d’écran 2022-10-10 à 14 20 05

Code Sample :
Semantics( label: 'My test', container: true, excludeSemantics: true, child: SelectableHtml( key: Key('myKey'), data: '<div>this is a sample text: <ul><li>first entry</li><li>first entry</li></ul></div>', ), ),

HTML to reproduce the issue:

this is a sample text:
  • first entry
  • first entry

Html widget configuration:
Semantics( label: 'My test', container: true, excludeSemantics: true, child: SelectableHtml( key: Key('myKey'), data: '<div>this is a sample text: <ul><li>first entry</li><li>first entry</li></ul></div>', ), ),

Expected behavior:
Capture d’écran 2022-10-10 à 14 12 35

Screenshots:

Device details and Flutter/Dart/flutter_html versions:
flutter 3.0.5 and flutter_html 3.0.0-alpha3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0