Sub6Resources / flutter_html

A Flutter widget for rendering static html as Flutter widgets (Will render over 80 different html tags!)
https://pub.dev/packages/flutter_html
MIT License
1.8k stars 875 forks source link

[BUG] Error with base64 image inside anchor #1123

Closed sdabet-orpheo closed 1 year ago

sdabet-orpheo commented 2 years ago

Describe the bug: When rendering a base64 image inside an anchor element an exception is thrown. It seems to happen only with html renderer on some devices. There's no exception if I remove the enclosing anchor.

HTML to reproduce the issue:

<a href="https://fr.linkedin.com/"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQCAYAAAByNR6YAAAABHNCSVQICAgIfAhkiAAAIABJREFUeF7t3Ql4FdXdx/F/gCwQCCFshn0HoYqgCIK1rWtFtO57lbq1VnGtivsuqC+iIlKtVnFr60rdqnXHXSyigBLZN8EEkxAIgRDIeyeamNws98ydMzNnZr55nvexfXvmf87/cw74e+ZO5qZUxn6EHwQQQAABBBBAAAFtAikELG2WFEIAAQQQQAABBKoECFgcBAQQQAABBBBAQLMAAUszKOUQQAABBBBAAAECFmcAAQQQQAABBBDQLEDA0gxKOQQQQAABBBBAgIDFGUAAAQQQQAABBDQLELA0g1IOAQQQQAABBBAgYHEGEEAAAQQQQAABzQIELM2glEMAAQQQQAABBAhYnAEEEEAAAQQQQECzAAFLMyjlEEAAAQQQQAABAhZnAAEEEEAAAQQQ0CxAwNIMSjkEEEAAAQQQQICAxRlAAAEEEEAAAQQ0CxCwNINSDgEEEEAAAQQQIGBxBhBAAAEEEEAAAc0CBCzNoJRDAAEEEEAAAQQIWJwBBBBAAAEEEEBAswABSzMo5RBAAAEEEEAAAQIWZwABBBBAAAEEENAsQMDSDEo5BBBAAAEEEECAgMUZQAABBBBAAAEENAsQsDSDUg4BBBBAAAEEECBgcQYQQAABBBBAAAHNAgQszaCUQwABBBBAAAEECFicAQQQQAABBBBAQLMAAUszKOUQQAABBBBAAAECFmcAAQQQQAABBBDQLEDA0gxKOQQQQAABBBBAgIDFGUAAAQQQQAABBDQLELA0g1IOA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EXg/wFOrJ7XAme17wAAAABJRU5ErkJggg=="/> </a>

Html widget configuration:

Html(data: html)

Expected behavior: No exception raised

Device details and Flutter/Dart/flutter_html versions:

Stacktrace/Logcat

NoSuchMethodError: method not found: 'start' on null
     at LineBuilder._popSegment$0
     at LineBuilder.revertToLastBreakOpportunity$0
     at TextLayoutService.performLayout$1
     at CanvasParagraph.layout$1
     at TextPainter._layoutParagraph$2
     at TextPainter.layout$2$maxWidth$minWidth
     at RenderParagraph._paragraph$_layoutText$2$maxWidth$minWidth 
     at RenderParagraph._layoutTextWithConstraints$1
     at RenderParagraph.performLayout$0
     at RenderParagraph.layout$2$parentUsesSize
Sub6Resources commented 1 year ago

I'm having a hard time reproducing this issue. It's possible it was a Flutter bug that has since been fixed? What Flutter version were you using? Any pattern in the devices that are affected?