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
Copy file name to clipboardExpand all lines: README.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ If you would like to modify or sanitize the HTML before rendering it, then `Html
148
148
|`data`| The HTML data passed to the `Html` widget. This is required and cannot be null when using `Html()`. |
149
149
|`document`| The DOM document passed to the `Html` widget. This is required and cannot be null when using `Html.fromDom()`. |
150
150
|`onLinkTap`| A function that defines what the widget should do when a link is tapped. The function exposes the `src` of the link as a `String` to use in your implementation. |
151
-
|`customRender`| A powerful API that allows you to customize everything when rendering a specific HTML tag. |
151
+
|`customRenders`| A powerful API that allows you to customize everything when rendering a specific HTML tag. |
152
152
|`onImageError`| A function that defines what the widget should do when an image fails to load. The function exposes the exception `Object` and `StackTrace` to use in your implementation. |
153
153
|`shrinkWrap`| A `bool` used while rendering different widgets to specify whether they should be shrink-wrapped or not, like `ContainerSpan`|
154
154
|`onImageTap`| A function that defines what the widget should do when an image is tapped. The function exposes the `src` of the image as a `String` to use in your implementation. |
@@ -231,7 +231,7 @@ Widget html = Html(
231
231
232
232
Inner links (such as `<a href="#top">Back to the top</a>` will work out of the box by scrolling the viewport, as long as your `Html` widget is wrapped in a scroll container such as a `SingleChildScrollView`.
233
233
234
-
### customRender:
234
+
### customRenders:
235
235
236
236
A powerful API that allows you to customize everything when rendering a specific HTML tag. This means you can change the default behaviour or add support for HTML elements that aren't supported natively. You can also make up your own custom tags in your HTML!
237
237
@@ -243,7 +243,7 @@ The `CustomRender` class has two constructors: `CustomRender.fromWidget()` and `
243
243
244
244
To use this API, create a matching function and an instance of `CustomRender`.
0 commit comments