To display valid HTML you can set the src field to the following: _src = “data:text/html;charset=utf-8,” + Uri. encodeComponent(“HTML_CONTENT_HERE”); For the package you can also pass markdown to the src and it will convert it for you.10 Mar 2020
Read moreHow do you write HTML code in flutter?
To show html on Flutter web we need to use an HTMLElementView . This is a platform view that allows us to display native content. We first need to register the Element and add all the options we need. Here we are creating an iFrame element and setting the source based on if it is markdown, html or a url.
Read moreCan you use HTML in Flutter?
Flutter actually controls every pixel that is drawn to the screen and doesn’t use HTML , JavaScript, or CSS to define any of its look or logic.
Read moreHow do I embed HTML into Flutter?
There is a HTMLElementView widget which can help you embed Html in flutter web . This widget can take an Iframe and render it. If you don’t prefer Iframe then you can embed simply a BodyElement from the dart:html library directly. An example of embedding Iframe is availabel here.
Read more