Closed IsmailHosenIsmailJames closed 8 months ago
Hi @IsmailHosenIsmailJames , this is a CORS issue on web
But I have got a solution. The solution is to compile with html for web render. This is the command for compiled with html render:
flutter build web --web-renderer html
i run this command for run your project with html renderer
ismail@ismail:~/markdown_widget/example$ flutter run -d chrome --web-renderer html
then it works perfectly.
But I have got a solution. The solution is to compile with html for web render. This is the command for compiled with html render:
flutter build web --web-renderer html
yes, but this solution will cause many other abnormal behaviors
if you want to show the network images on web, you need change the settings of image server to support CORS
such as this picture: ![](https://img2.baidu.com/it/u=2546290954,811864095&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281)
I actually building a social paltfrom where my students and my classmates will learn programming and will post here to share with others the learning resources. For this I am using Firebase as backend. User will upload their images and videos here. So I have no option to change my server settings to support this kind of images on my website. No problem I will compile it with HTML Render. because I previously using this for my website. Because Html render is light weight for my website.
I want to work with you on open source projects. For that I need to understand your code. Do you consider me?
Hi @IsmailHosenIsmailJames , using HTML as a rendering option may be lighter, but since it's just a fallback option for Flutter web, I may not have the time or ability to address the issues it may cause. If you encounter any issues with this open-source library, feel free to raise an issue anytime. I will review them when I have time and provide answers within my capabilities.
I have tried your package. I got a bug when I paste a simple markdown image with a https link. Desktop view was not able to render the image. The markdwon text was this :
I also tried same thing in you demo page. Same things happen.
these image from your demo page
this is my code
here is the image