flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

[BUG] Images in tables are not scaled to display size

Open marcjoha opened this issue 3 years ago • 0 comments

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)

marcjoha avatar Jan 16 '22 04:01 marcjoha