flutter_html
flutter_html copied to clipboard
[BUG] Images in tables are not scaled to display size
Describe the bug: Images within tables are not scaled to display size, causing them to overflow horizontally. Images not inside a table are scaled correctly.
HTML to reproduce the issue:
var html = '<table><tr><td><img src="https://bit.ly/3KfP0K3" /></td></tr></table>'
Html widget configuration:
Html(
data: html,
customRenders: {tableMatcher(): tableRender()},
)
Expected behavior: Images to be scaled so they fit into the screen.
Device details and Flutter/Dart/flutter_html versions:
Android 9
Flutter 2.8.1
Dart 2.15.1
flutter_html 3.0.0-alpha.2 (also same behavior in 2.2.1)