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

[BUG] <li> Rendering issues #921

Closed
devon2018 opened this issue Dec 5, 2021 · 6 comments
Closed

[BUG] <li> Rendering issues #921

devon2018 opened this issue Dec 5, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@devon2018
Copy link

Describe the bug:

There seems to be a bug rendering lists, I cant seem to figure out whats causing it but there seems to be an issue rendering a character.
HTML to reproduce the issue:

<ul><li>list item</li></ul>

Html widget configuration:

  Html(
      data: section.content,
      onLinkTap: widget.htmlRenderProps?.onLinkTap,
  );

Expected behavior:

Screenshots:

Screenshot 2021-12-05 at 18 42 04

**Device details and Flutter/Dart/`flutter_html` versions:**

Stacktrace/Logcat

Additional info:

flutter_html: ^2.2.0

A picture of a cute animal (not mandatory but encouraged)

Screenshot 2021-12-05 at 18 42 04

@devon2018 devon2018 added the bug Something isn't working label Dec 5, 2021
@erickok
Copy link
Collaborator

erickok commented Dec 5, 2021

Sweet doggies.

That's the tab character not rendering properly. Are you using a custom font?

@devon2018
Copy link
Author

Hi @erickok

Nope i've not setup my app to use a different font.

@erickok
Copy link
Collaborator

erickok commented Dec 6, 2021

Which target platform are you using? iOS, Android or web? Can't you reproduce this in the example app (because I can't)?

@devon2018
Copy link
Author

So the issue only seems to be happening in IOS, i've tested on android and its fine.

I've not been able to replicate it in the example app. But i imagine that is down to a versioning thing as a relatively new project and most of the libraries i've used will be on later versions.

@erickok
Copy link
Collaborator

erickok commented Dec 7, 2021

I can't seem to reproduce this on iOS (both in our reasonably large production app and the example app) or elsewhere. We had reports just like yours: #831 and #489 but we never had a case where we could reproduce except for in #327 which we seemingly fixed.

@erickok
Copy link
Collaborator

erickok commented Dec 7, 2021

Actually I can reproduce this if I use a TextTheme on my (example) app with a fontWeight of w300 or thinner. Annoyingly just wrapping with a Theme widget doesn't even help so I have to investigate a bit. In any case its the (weird!) bug again where a tab character rendering fails when the font weight is < 400.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants