I am using flutter_html to render html code and it is working well but I am having a problem with img tag
The img tag work well when the image is from the web like this:
<img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png">
but it doesn't work when it's a local asset image file Note: I can use the same image in an Image widget like this:
Image.asset('assets/images/logo_tst.png'),
but it wont show in html code and I tried all these:
String htmlUrl = '''
<img src="file:///storage/assets/images/logo_tst.png" alt="web-img1" >
<img src="file:///assets/images/logo_tst.png" alt="web-img2">
<img src="file:///images/logo_tst.png" alt="web-img3">
''';
then I call it:
Html( data:htmlUrl),
And it only shows the alt:
web-img1
web-img2
web-img3
I am testing on an Android emulator and a device
what Am I doing wrong?
Thank you