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

When placing html view inside a list view builder the content in iPAD overflows horizontally and is not visible. #459

Closed
ArjunNagraj opened this issue Nov 22, 2020 · 6 comments

Comments

@ArjunNagraj
Copy link

Container(
width:deviceWidth-20,
// margin: EdgeInsets.only(left: 10.0,right:20),
child:Html(
// defaultTextStyle:new Util().getMediumSizeThinTextStylePrefferedColor(AppConstant.APP_DARK_GREY),
data: aboutUsItems[index].subTitle,

                      //Optional parameters:
                      style: <my custom html style>,),
                    )

The content overflows in iPAD as attached the image and is fine in mobile devices.
Simulator Screen Shot - iPhone 12 Pro - 2020-11-22 at 16 48 27
Simulator Screen Shot - iPad Pro (11-inch) (2nd generation) - 2020-11-22 at 16 42 54

@DFelten
Copy link
Contributor

DFelten commented Nov 22, 2020

I think this is a known but already fixed issue: #308

@ArjunNagraj
Copy link
Author

@DFelten Thanks for the mention there are so many issues or solutions around it . Tried looking for a fix still finding.

@erickok
Copy link
Collaborator

erickok commented Nov 22, 2020

Use the latest (master) flutter_html and latest Flutter stable release.

@ArjunNagraj
Copy link
Author

@erickok thanks.Tthat is such a costly operation considering the cross dependencies and custom forks.

@erickok
Copy link
Collaborator

erickok commented Nov 23, 2020

We just released flutter_html 1.1.1 which contains the fix for this issue (as long as you are on a Flutter 1.22 or later).

@ArjunNagraj
Copy link
Author

@erickok thanks a lot. I will have to go through some dependency changes and regression testing. Will plan it. Thanks a lot for the replies.

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

3 participants