1
1
# flutter_html
2
2
[ ![ pub package] ( https://img.shields.io/pub/v/flutter_html.svg )] ( https://pub.dartlang.org/packages/flutter_html )
3
3
4
- A Flutter widget for rendering static html tags as Flutter widgets. (Will render 70 different html tags!)
4
+ A Flutter widget for rendering static html tags as Flutter widgets. (Will render over 70 different html tags!)
5
5
6
6
## Installing:
7
7
8
8
Add the following to your ` pubspec.yaml ` file:
9
9
10
10
dependencies:
11
- flutter_html: ^0.5.6
11
+ flutter_html: ^0.6.0
12
12
13
13
## Currently Supported HTML Tags:
14
-
15
- * ` a `
16
- * ` abbr `
17
- * ` acronym `
18
- * ` address `
19
- * ` article `
20
- * ` aside `
21
- * ` b `
22
- * ` bdi `
23
- * ` bdo `
24
- * ` big `
25
- * ` blockquote `
26
- * ` body `
27
- * ` br `
28
- * ` caption `
29
- * ` cite `
30
- * ` code `
31
- * ` data `
32
- * ` dd `
33
- * ` del `
34
- * ` dfn `
35
- * ` div `
36
- * ` dl `
37
- * ` dt `
38
- * ` em `
39
- * ` figcaption `
40
- * ` figure `
41
- * ` footer `
42
- * ` h1 `
43
- * ` h2 `
44
- * ` h3 `
45
- * ` h4 `
46
- * ` h5 `
47
- * ` h6 `
48
- * ` header `
49
- * ` hr `
50
- * ` i `
51
- * ` img `
52
- * ` ins `
53
- * ` kbd `
54
- * ` li `
55
- * ` main `
56
- * ` mark `
57
- * ` nav `
58
- * ` noscript `
59
- * ` p `
60
- * ` pre `
61
- * ` q `
62
- * ` rp `
63
- * ` rt `
64
- * ` ruby `
65
- * ` s `
66
- * ` samp `
67
- * ` section `
68
- * ` small `
69
- * ` span `
70
- * ` strike `
71
- * ` strong `
72
- * ` table `
73
- * ` tbody `
74
- * ` td `
75
- * ` template `
76
- * ` tfoot `
77
- * ` th `
78
- * ` thead `
79
- * ` time `
80
- * ` tr `
81
- * ` tt `
82
- * ` u `
83
- * ` var `
14
+ ` 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 `
84
15
85
16
### Partially supported elements:
86
- > These are common elements that aren't yet fully supported, but won't be ignored and will still render.
17
+ > These are common elements that aren't yet fully supported, but won't be ignored and will still render somewhat correctly .
87
18
88
- * ` center `
89
- * ` ol `
90
- * ` ul `
19
+ ` center ` , ` ol ` , ` ul `
91
20
92
21
### List of _ planned_ supported elements:
93
22
> These are elements that are planned, but present a specific challenge that makes them somewhat difficult to implement.
94
23
95
- * ` audio `
96
- * ` details `
97
- * ` source `
98
- * ` sub `
99
- * ` summary `
100
- * ` sup `
101
- * ` svg `
102
- * ` track `
103
- * ` video `
104
- * ` wbr `
24
+ ` audio ` , ` details ` , ` source ` , ` sub ` , ` summary ` , ` sup ` , ` svg ` , ` track ` , ` video ` , ` wbr `
105
25
106
- ### Here are a list of elements that I don't plan on implementing:
26
+ ### List of elements that I don't plan on implementing:
107
27
108
28
> Feel free to open an issue if you have a good reason and feel like you can convince me to implement
109
29
them. A _ well written_ and _ complete_ pull request implementing one of these is always welcome,
110
30
though I cannot promise I will merge them.
111
31
112
32
> Note: These unsupported tags will just be ignored.
113
33
114
- * ` acronym ` (deprecated, use ` abbr ` instead)
115
- * ` applet ` (deprecated)
116
- * ` area `
117
- * ` base ` (` head ` elements are not rendered)
118
- * ` basefont ` (deprecated, use defaultTextStyle on ` Html ` widget instead)
119
- * ` big ` (deprecated)
120
- * ` button `
121
- * ` canvas `
122
- * ` center ` (deprecated)
123
- * ` col `
124
- * ` colgroup `
125
- * ` datalist `
126
- * ` dialog `
127
- * ` dir ` (deprecated)
128
- * ` embed `
129
- * ` font ` (deprecated)
130
- * ` fieldset ` (` form ` elements are outside the scope of this package)
131
- * ` form ` (` form ` s are outside the scope of this package)
132
- * ` frame ` (deprecated)
133
- * ` frameset ` (deprecated)
134
- * ` head ` (` head ` elements are not rendered)
135
- * ` iframe `
136
- * ` input ` (` form ` elements are outside the scope of this package)
137
- * ` label ` (` form ` elements are outside the scope of this package)
138
- * ` legend ` (` form ` elements are outside the scope of this package)
139
- * ` link ` (` head ` elements are not rendered)
140
- * ` map `
141
- * ` meta ` (` head ` elements are not rendered)
142
- * ` meter ` (outside the scope for now; maybe later)
143
- * ` noframe ` (deprecated)
144
- * ` object `
145
- * ` optgroup ` (` form ` elements are outside the scope of this package)
146
- * ` option ` (` form ` elements are outside the scope of this package)
147
- * ` output `
148
- * ` param `
149
- * ` picture `
150
- * ` progress `
151
- * ` script `
152
- * ` select ` (` form ` elements are outside the scope of this package)
153
- * ` style `
154
- * ` textarea ` (` form ` elements are outside the scope of this package)
155
- * ` title ` (` head ` elements are not rendered)
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 `
156
35
157
36
158
37
## Why this package?
@@ -165,6 +44,7 @@ until official support is added.
165
44
166
45
Html(
167
46
data: """
47
+ <!--For a much more extensive example, look at example/main.dart-->
168
48
<div>
169
49
<h1>Demo Page</h1>
170
50
<p>This is a fantastic nonexistent product that you should buy!</p>
@@ -174,6 +54,7 @@ until official support is added.
174
54
<p>There isn't <i>really</i> a team...</p>
175
55
<h2>Installation</h2>
176
56
<p>You <u>cannot</u> install a nonexistent product!</p>
57
+ <!--You can pretty much put any html in here!-->
177
58
</div>
178
59
""",
179
60
//Optional parameters:
0 commit comments