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

Html content goes beyond screen size on Galaxy s10 device [Android][Samsung Galaxy S10] #408

Closed
joelbrostrom opened this issue Sep 25, 2020 · 3 comments

Comments

@joelbrostrom
Copy link

This is the widget I render:

          Padding(
            padding: const EdgeInsets.only(left: 24.0, right: 24.0, top: 28.0 ,bottom: 28.0),
            child: Html(
              data: _htmlContent,
              style: {
                "html": Style.fromTextStyle(AppFont.articleSummaryBodyBook)
                    .copyWith(textAlign: TextAlign.start),
                "p": Style.fromTextStyle(AppFont.articleSummaryBodyBook)
                    .copyWith(textAlign: TextAlign.justify),
              },
            ),
          )

And this is the result

no padding vertical padding : 24.0 left: 24.0, right: 64.0
flutter_05 flutter_01 flutter_04

The two first overflows, and the last with right padding = 64.0 looks alright.
How come that 24 vertical padding looks good on my Nexus and on Iphone, but not on Galaxy S10?

@erickok
Copy link
Collaborator

erickok commented Sep 25, 2020

Duplicate of #308

@ueman
Copy link

ueman commented Oct 3, 2020

This is fixed as of Flutter 1.22

@ryan-berger
Copy link
Collaborator

Fixed in 1.22!

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

4 participants