jaspr_html_to_component

Last updated:

0 purchases

jaspr_html_to_component Image
jaspr_html_to_component Images
Add to Cart

Description:

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 =)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.