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
}
);