Last updated:
0 purchases
jaspr html to component
jaspr_html_to_component #
Simple dart package that converts HTML strings into [Jaspr](https://github.com/schultek/jaspr) Components
Setup #
To get started, add the package as a dev dependency to your project:
dart pub add jaspr_html_to_component
Usage #
import 'dart:convert';
import 'package:jaspr/jaspr.dart';
import 'package:jaspr_html_to_component/jaspr_html_to_component.dart'
@client
class Page extends StatelessComponent {
@override
Iterable<Component> build(BuildContext context) sync* {
var test = "<bold><a href='/'>Hello World!</a></bold>";
yield HtmlToComponent(test);
}
}
copied to clipboard
Thanks for using it =)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.