Answers for "html to flutter"

0

html to flutter

Add the following to your pubspec.yaml file:
  dependencies:
    flutter_html: ^1.3.0

Example Usage - Data:
  Widget html = Html(
  data: """<p>
   Linking to <a href='https://github.com'>websites</a> has never been easier.
  </p>""",
  onLinkTap: (String url) {
    //open URL in webview, or launch URL in browser, or any other logic here
  }
);
Posted by: Guest on April-16-2021

Browse Popular Code Answers by Language