Skip to content
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

Not rendering content properly with multiple UL/LI tag #182

Closed
premtemp1 opened this issue Nov 5, 2019 · 3 comments
Closed

Not rendering content properly with multiple UL/LI tag #182

premtemp1 opened this issue Nov 5, 2019 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@premtemp1
Copy link

premtemp1 commented Nov 5, 2019

Hello,
The plugin is not rendering the html content in proper order for UL/LI tag.

This is my flutter snippet

child: Html( defaultTextStyle: TextStyle(fontSize: 16.0), //data: jobDetail.description, data: "responsibilities:<br /> <ul><li>Responsibility1</li><li>Responsibility2</li><li>Responsibility3</li></ul>&nbsp; qualifications:<br /><ul><li>Qualification1</li><li>Qualification2</li></ul>&nbsp;<br /> ", ),

This is how it renders after parsing
responsibilities
qualifications

  • Responsibility1
  • Responsibility2
  • Responsibility3
  • Qualification
  • Qualification

As you can see it is not rendering properly. It is rendering the LI tag at the end.

Thanks for your help

@arnold-parge
Copy link

Even I am facing this issue. Is it resolved yet?

@premtemp1
Copy link
Author

Please try ..
https://pub.dev/packages/flutter_widget_from_html_core

Container(
padding: const EdgeInsets.only(top: 15.0),
child: HtmlWidget(
"YOUR HTML TEXT",
bodyPadding: EdgeInsets.all(0),
textStyle: TextStyle(fontSize: 16.0),
),

@Sub6Resources
Copy link
Owner

There was an issue with lists in old versions, and this has been fixed and will be released with version 1.0.0. See #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants