File tree Expand file tree Collapse file tree 4 files changed +21
-18
lines changed Expand file tree Collapse file tree 4 files changed +21
-18
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 0.5.4] - August 31, 2018:
2
+
3
+ * Adds ` onLinkTap ` callback.
4
+
1
5
## [ 0.5.3] - August 25, 2018:
2
6
3
7
* Adds support for ` strike ` , and ` tt ` .
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ A Flutter widget for rendering static html tags as Flutter widgets. (Will render
8
8
Add the following to your ` pubspec.yaml ` file:
9
9
10
10
dependencies:
11
- flutter_html: ^0.5.3
11
+ flutter_html: ^0.5.4
12
12
13
13
## Currently Supported HTML Tags:
14
14
15
+ * ` a `
15
16
* ` abbr `
16
17
* ` address `
17
18
* ` article `
@@ -82,7 +83,6 @@ Add the following to your `pubspec.yaml` file:
82
83
### Partially supported elements:
83
84
> These are common elements that aren't yet fully supported, but won't be ignored and will still render.
84
85
85
- * ` a `
86
86
* ` ol `
87
87
* ` ul `
88
88
Original file line number Diff line number Diff line change @@ -101,22 +101,21 @@ class HtmlParser {
101
101
switch (node.localName) {
102
102
case "a" :
103
103
return GestureDetector (
104
- child: DefaultTextStyle .merge (
105
- child: Wrap (
106
- children: _parseNodeList (node.nodes),
104
+ child: DefaultTextStyle .merge (
105
+ child: Wrap (
106
+ children: _parseNodeList (node.nodes),
107
+ ),
108
+ style: const TextStyle (
109
+ decoration: TextDecoration .underline,
110
+ color: Colors .blueAccent,
111
+ decorationColor: Colors .blueAccent),
107
112
),
108
- style: const TextStyle (
109
- decoration: TextDecoration .underline,
110
- color: Colors .blueAccent,
111
- decorationColor: Colors .blueAccent),
112
- ),
113
- onTap: () {
114
- if (node.attributes.containsKey ('href' ) && onLinkTap != null ) {
115
- String url = node.attributes['href' ];
116
- onLinkTap (url);
117
- }
118
- }
119
- );
113
+ onTap: () {
114
+ if (node.attributes.containsKey ('href' ) && onLinkTap != null ) {
115
+ String url = node.attributes['href' ];
116
+ onLinkTap (url);
117
+ }
118
+ });
120
119
case "abbr" :
121
120
return DefaultTextStyle .merge (
122
121
child: Wrap (
Original file line number Diff line number Diff line change 1
1
name : flutter_html
2
2
description : A Flutter widget for rendering static html tags as Flutter widgets. (Will render over 60 different html tags!)
3
- version : 0.5.3
3
+ version : 0.5.4
4
4
author : Matthew Whitaker <sub6resources@gmail.com>
5
5
homepage : https://github.com/Sub6Resources/flutter_html
6
6
You can’t perform that action at this time.
0 commit comments