Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sub6Resources committed Sep 5, 2018
1 parent f1e5607 commit 74dfee4
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 131 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.6.0] - September 4, 2018:

* Update README.md and example
* GitHub version 0.6.0 milestone reached

## [0.5.6] - September 4, 2018:

* Adds partial support for `center` and a `renderNewlines` property on the `Html` widget.
Expand Down
139 changes: 10 additions & 129 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,158 +1,37 @@
# flutter_html
[![pub package](https://img.shields.io/pub/v/flutter_html.svg)](https://pub.dartlang.org/packages/flutter_html)

A Flutter widget for rendering static html tags as Flutter widgets. (Will render 70 different html tags!)
A Flutter widget for rendering static html tags as Flutter widgets. (Will render over 70 different html tags!)

## Installing:

Add the following to your `pubspec.yaml` file:

dependencies:
flutter_html: ^0.5.6
flutter_html: ^0.6.0

## Currently Supported HTML Tags:

* `a`
* `abbr`
* `acronym`
* `address`
* `article`
* `aside`
* `b`
* `bdi`
* `bdo`
* `big`
* `blockquote`
* `body`
* `br`
* `caption`
* `cite`
* `code`
* `data`
* `dd`
* `del`
* `dfn`
* `div`
* `dl`
* `dt`
* `em`
* `figcaption`
* `figure`
* `footer`
* `h1`
* `h2`
* `h3`
* `h4`
* `h5`
* `h6`
* `header`
* `hr`
* `i`
* `img`
* `ins`
* `kbd`
* `li`
* `main`
* `mark`
* `nav`
* `noscript`
* `p`
* `pre`
* `q`
* `rp`
* `rt`
* `ruby`
* `s`
* `samp`
* `section`
* `small`
* `span`
* `strike`
* `strong`
* `table`
* `tbody`
* `td`
* `template`
* `tfoot`
* `th`
* `thead`
* `time`
* `tr`
* `tt`
* `u`
* `var`
`a`, `abbr`, `acronym`, `address`, `article`, `aside`, `b`, `bdi`, `bdo`, `big`, `blockquote`, `body`, `br`, `caption`, `cite`, `code`, `data`, `dd`, `del`, `dfn`, `div`, `dl`, `dt`, `em`, `figcaption`, `figure`, `footer`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `header`, `hr`, `i`, `img`, `ins`, `kbd`, `li`, `main`, `mark`, `nav`, `noscript`, `p`, `pre`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `section`, `small`, `span`, `strike`, `strong`, `table`, `tbody`, `td`, `template`, `tfoot`, `th`, `thead`, `time`, `tr`, `tt`, `u`, `var`

### Partially supported elements:
> These are common elements that aren't yet fully supported, but won't be ignored and will still render.
> These are common elements that aren't yet fully supported, but won't be ignored and will still render somewhat correctly.
* `center`
* `ol`
* `ul`
`center`, `ol` , `ul`

### List of _planned_ supported elements:
> These are elements that are planned, but present a specific challenge that makes them somewhat difficult to implement.
* `audio`
* `details`
* `source`
* `sub`
* `summary`
* `sup`
* `svg`
* `track`
* `video`
* `wbr`
`audio`, `details`, `source`, `sub`, `summary`, `sup`, `svg`, `track`, `video`, `wbr`

### Here are a list of elements that I don't plan on implementing:
### List of elements that I don't plan on implementing:

> Feel free to open an issue if you have a good reason and feel like you can convince me to implement
them. A _well written_ and _complete_ pull request implementing one of these is always welcome,
though I cannot promise I will merge them.

> Note: These unsupported tags will just be ignored.
* `acronym` (deprecated, use `abbr` instead)
* `applet` (deprecated)
* `area`
* `base` (`head` elements are not rendered)
* `basefont` (deprecated, use defaultTextStyle on `Html` widget instead)
* `big` (deprecated)
* `button`
* `canvas`
* `center` (deprecated)
* `col`
* `colgroup`
* `datalist`
* `dialog`
* `dir` (deprecated)
* `embed`
* `font` (deprecated)
* `fieldset` (`form` elements are outside the scope of this package)
* `form` (`form`s are outside the scope of this package)
* `frame` (deprecated)
* `frameset` (deprecated)
* `head` (`head` elements are not rendered)
* `iframe`
* `input` (`form` elements are outside the scope of this package)
* `label` (`form` elements are outside the scope of this package)
* `legend` (`form` elements are outside the scope of this package)
* `link` (`head` elements are not rendered)
* `map`
* `meta` (`head` elements are not rendered)
* `meter` (outside the scope for now; maybe later)
* `noframe` (deprecated)
* `object`
* `optgroup` (`form` elements are outside the scope of this package)
* `option` (`form` elements are outside the scope of this package)
* `output`
* `param`
* `picture`
* `progress`
* `script`
* `select` (`form` elements are outside the scope of this package)
* `style`
* `textarea` (`form` elements are outside the scope of this package)
* `title` (`head` elements are not rendered)
`applet`, `area`, `base`, `basefont`, `button`, `canvas`, `col`, `colgroup`, `datalist`, `dialog`, `dir`, `embed`, `font`, `fieldset`, `form`, `frame`, `frameset`, `head`, `iframe`, `input`, `label`, `legend`, `link`, `map`, `meta`, `meter`, `noframe`, `object`, `optgroup`, `option`, `output`, `param`, `picture`, `progress`, `script`, `select`, `style`, `textarea`, `title`


## Why this package?
Expand All @@ -165,6 +44,7 @@ until official support is added.

Html(
data: """
<!--For a much more extensive example, look at example/main.dart-->
<div>
<h1>Demo Page</h1>
<p>This is a fantastic nonexistent product that you should buy!</p>
Expand All @@ -174,6 +54,7 @@ until official support is added.
<p>There isn't <i>really</i> a team...</p>
<h2>Installation</h2>
<p>You <u>cannot</u> install a nonexistent product!</p>
<!--You can pretty much put any html in here!-->
</div>
""",
//Optional parameters:
Expand Down
Loading

0 comments on commit 74dfee4

Please sign in to comment.