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

Right overflow on some devices #334

Closed
Seedorf161 opened this issue Jun 22, 2020 · 5 comments
Closed

Right overflow on some devices #334

Seedorf161 opened this issue Jun 22, 2020 · 5 comments

Comments

@Seedorf161
Copy link

There's a right overflow on some devices. Everything is fine on the emulator. This is on my Samsung Galaxy Note 8 running Android 10.

Screenshot_20200622-172639

@erickok
Copy link
Collaborator

erickok commented Jun 23, 2020

See #308 and fix #333 - this is (mostly) due to a bug in Flutter.

@lukeurban
Copy link

I've also created a branch with a solution to it. Mostly the same as @edwardaux solution to #333 but with the ability to define textScaleFactor for the whole HTML widget.

@luis901101
Copy link

luis901101 commented Jul 9, 2020

If ignoring accessibility is not a problem you can try a workaround like:

`MediaQuery(

    data: MediaQuery.of(context).copyWith(textScaleFactor: 1),
    child: Html(
      data: someHtmlText,
      shrinkWrap: true,
      style: {"body": Style(
        fontSize: FontSize(18,),
        color: someColor,
        textAlign: TextAlign.center,
      )},
    ),
  )

`

@ueman
Copy link

ueman commented Jul 10, 2020

See #308 and fix #333 - this is (mostly) due to a bug in Flutter.

#333 sadly does not fix this issue.

@ryan-berger
Copy link
Collaborator

@ueman #333 doesn't fix the issue due to a Flutter issue that is unresolved. Text is not wrapping correctly.

I will close this issue as it is a duplicate of #308, and we are unable to fix this until Flutter fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants