Skip to content

Commit b8e6502

Browse files
committed
Version 0.9.2
1 parent f42d78c commit b8e6502

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.9.2] - January 31, 2019:
2+
3+
* Adds partial support for deprecated `font` tag.
4+
15
## [0.9.1] - January 31, 2019:
26

37
* Adds full support for `sub` and `sup`. ([#46](https://github.com/Sub6Resources/flutter_html/pull/46))

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add the following to your `pubspec.yaml` file:
1616
### Partially supported elements:
1717
> These are common elements that aren't yet fully supported, but won't be ignored and will still render somewhat correctly.
1818
19-
`center`
19+
`center`, `font`
2020

2121
### List of _planned_ supported elements:
2222
> These are elements that are planned, but present a specific challenge that makes them somewhat difficult to implement.
@@ -31,7 +31,7 @@ Add the following to your `pubspec.yaml` file:
3131

3232
> Note: These unsupported tags will just be ignored.
3333
34-
`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`
34+
`applet`, `area`, `base`, `basefont`, `button`, `canvas`, `col`, `colgroup`, `datalist`, `dialog`, `dir`, `embed`, `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`
3535

3636

3737
## Why this package?

lib/html_parser.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ class HtmlOldParser extends StatelessWidget {
797797
"em",
798798
"figcaption",
799799
"figure",
800+
"font",
800801
"footer",
801802
"h1",
802803
"h2",
@@ -1112,6 +1113,10 @@ class HtmlOldParser extends StatelessWidget {
11121113
children: _parseNodeList(node.nodes),
11131114
crossAxisAlignment: CrossAxisAlignment.center,
11141115
));
1116+
case "font":
1117+
return Wrap(
1118+
children: _parseNodeList(node.nodes),
1119+
);
11151120
case "footer":
11161121
return Container(
11171122
width: width,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_html
22
description: A Flutter widget for rendering static html tags as Flutter widgets. (Will render over 70 different html tags!)
3-
version: 0.9.1
3+
version: 0.9.2
44
author: Matthew Whitaker <sub6resources@gmail.com>
55
homepage: https://github.com/Sub6Resources/flutter_html
66

0 commit comments

Comments
 (0)