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.79k stars 860 forks source link

[QUESTION] How to display inline image. #1187

Closed shota-akizuki-eda closed 1 year ago

shota-akizuki-eda commented 1 year ago

Hello, how I can display inline image?

The html data is something like this:

<p>wirklich?</p>
<p></p>
 <figure><img src="" data-image="example.png"></figure>
shota-akizuki-eda commented 1 year ago

In a web app(not flutter),

スクリーンショット 2022-11-07 18 49 55

But flutter(iOS / Android),

スクリーンショット 2022-11-07 18 51 05
Sub6Resources commented 1 year ago

There are a couple steps:

First of all, be sure your app has network access, which is essential for loading network images. Next, you may need to add figure to the tagsList (i.e. tagsList: Html.tags..addAll("figure")

If that doesn't fix it let us know.