-
-
Notifications
You must be signed in to change notification settings - Fork 889
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] Images extend beyond layout boundaries in flutter_html: ^3.0.0-beta.2 #1357
Comments
same |
Made a PR that addresses this, at least fro the few use cases I've had. Can you guys try out #1359 to see if the use of |
Huh. That's weird, since you say the problem appears in beta2, despite this fix being in beta2 ? |
Exactly. I don't know what could be the problem. But can you fix it in beta2? |
I have a solution, use like this
|
This will stretch your smaller images with the current version. However, with the |
Using the above changes, leaves empty white space over and below the image if the image is large? Any suggestion to remove the white spaces from top and bottom of the image? |
Describe the bug:
The issue I'm facing is that the images within my HTML code are not fitting within the screen as they did in the past. When I attempted to implement the same feature again recently, I noticed that the images are no longer aligning correctly. What's happening now is that the images are extending beyond the designated container, causing only a portion of the image to be visible on the phone screen. This behaviour is different from what I experienced previously, and it's causing a disruption in the layout and presentation of the content. Attached screenshot below.
It used to work smoothly in Flutter 3.8, But after updating to 3.10 this problem appeared.
HTML to reproduce the issue:
Html
widget configuration:flutter_html: ^3.0.0-beta.2
Expected behavior:
The images within the HTML code should stay inside the designated container's padding, without extending beyond its boundaries.
Screenshots:
Before:
https://ibb.co/9h0GfRN
Now:
https://ibb.co/ngfzhpk
Device details and Flutter/Dart/
flutter_html
versions:Device I checked in:
Oppo
Samsung
iTel
Symphony
Pixel 2
Package Version:
flutter_html: ^3.0.0-beta.2
The text was updated successfully, but these errors were encountered: