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 moreHow do you use HTML in darts?
Connect Dart and HTML
Read moreDo you need HTML for Flutter?
Flutter is, underneath it all, a library of Dart classes. There is no markup language involved or JSX-style hybrid language. Every bit of front-end code is written in Dart. No HTML .
Read moreHow do I display HTML in Flutter?
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.
Read more