Skip to content

Commit e7b9c02

Browse files
committed
Version 0.10.3
1 parent 9ff279d commit e7b9c02

File tree

5 files changed

+177
-96
lines changed

5 files changed

+177
-96
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.10.3] - June 20, 2019:
2+
3+
* Add `src` to the `onImageTap` callback ([#93](https://github.com/Sub6Resources/flutter_html/pull/93))
4+
15
## [0.10.2] - June 19, 2019:
26

37
* Add `customTextAlign` property ([#112](https://github.com/Sub6Resources/flutter_html/pull/112))

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A Flutter widget for rendering static html tags as Flutter widgets. (Will render
1212
Add the following to your `pubspec.yaml` file:
1313

1414
dependencies:
15-
flutter_html: ^0.10.2
15+
flutter_html: ^0.10.3
1616

1717
## Currently Supported HTML Tags:
1818
`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`, `ol`, `p`, `pre`, `q`, `rp`, `rt`, `ruby`, `s`, `samp`, `section`, `small`, `span`, `strike`, `strong`, `sub`, `sup`, `table`, `tbody`, `td`, `template`, `tfoot`, `th`, `thead`, `time`, `tr`, `tt`, `u`, `ul`, `var`
@@ -77,6 +77,10 @@ Check out the official Flutter WebView package here: https://pub.dartlang.org/pa
7777
onLinkTap: (url) {
7878
// open url in a webview
7979
},
80+
onImageTap: (src) {
81+
// Display the image in large form.
82+
},
83+
//Must have useRichText set to false for this to work.
8084
customRender: (node, children) {
8185
if(node is dom.Element) {
8286
switch(node.localName) {

example/main.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ class _MyHomePageState extends State<MyHomePage> {
129129
onLinkTap: (url) {
130130
print("Opening $url...");
131131
},
132+
onImageTap: (src) {
133+
print(src);
134+
},
135+
//Must have useRichText set to false for this to work
132136
customRender: (node, children) {
133137
if (node is dom.Element) {
134138
switch (node.localName) {

0 commit comments

Comments
 (0)