You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- onTapUrl: return `true` to indicate the URL tap was handled; when not handled and the URL is an in-page anchor (e.g. `#id` or `${baseUrl}#id`), it scrolls to the anchor automatically.
97
+
- onTapImage: receives `ImageMetadata`; access the first source via `image.sources.first.url`.
98
+
- onLoadingBuilder: shown while the widget/image is loading; receives `loadingProgress` (0.0–1.0 or null).
99
+
- onErrorBuilder: shown when a complex element fails to render; receives the thrown `error`.
100
+
85
101
## Features
86
102
87
103
### HTML tags
@@ -192,6 +208,6 @@ The [enhanced](https://pub.dev/packages/flutter_widget_from_html) package uses a
192
208
-[fwfh_url_launcher](https://pub.dev/packages/fwfh_url_launcher) to launch URLs
193
209
-[fwfh_webview](https://pub.dev/packages/fwfh_webview) for IFRAME support
194
210
195
-
See [the extensibility document](https://github.com/daohoangson/flutter_widget_from_html/blob/v0.14.2/docs/extensibility.md) for detailed information.
211
+
See [the extensibility document](https://github.com/daohoangson/flutter_widget_from_html/blob/master/docs/extensibility.md) for detailed information.
196
212
197
213
<ahref="https://www.buymeacoffee.com/daohoangson"target="_blank"><imgsrc="https://cdn.buymeacoffee.com/buttons/default-orange.png"alt="Buy Me A Coffee"height="41"width="174"></a>
- onTapUrl: return `true` to indicate the URL tap was handled; when not handled and the URL is an in-page anchor (e.g. `#id` or `${baseUrl}#id`), it scrolls to the anchor automatically.
118
+
- onTapImage: receives `ImageMetadata`; access the first source via `image.sources.first.url`.
119
+
- onLoadingBuilder: shown while the widget/image is loading; receives `loadingProgress` (0.0–1.0 or null).
120
+
- onErrorBuilder: shown when a complex element fails to render; receives the thrown `error`.
121
+
106
122
## Features
107
123
108
124
### HTML tags
@@ -203,6 +219,6 @@ These tags and their contents will be ignored:
203
219
204
220
The [core](https://pub.dev/packages/flutter_widget_from_html_core) package implements widget building logic with high testing coverage to ensure correctness. It tries to render an optimal tree by using `RichText` with specific `TextStyle`, merging text spans together, showing images in sized box, etc. The idea is to build a solid foundation for apps to customize.
205
221
206
-
See [the extensibility document](https://github.com/daohoangson/flutter_widget_from_html/blob/v0.14.2/docs/extensibility.md) for detailed information.
222
+
See [the extensibility document](https://github.com/daohoangson/flutter_widget_from_html/blob/master/docs/extensibility.md) for detailed information.
207
223
208
224
<ahref="https://www.buymeacoffee.com/daohoangson"target="_blank"><imgsrc="https://cdn.buymeacoffee.com/buttons/default-orange.png"alt="Buy Me A Coffee"height="41"width="174"></a>
0 commit comments