html_to_flutter 0.1.2-pre html_to_flutter: ^0.1.2-pre copied to clipboard
A package that parses html content and converts them into TextSpans and renders Text.rich widget.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add html_to_flutter
With Flutter:
$ flutter pub add html_to_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
html_to_flutter: ^0.1.2-pre
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:html_to_flutter/html_to_flutter.dart';