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
|`background-color`|`border`(including specific directions) |`color`|`direction`|`display`|`font-family`|`font-feature-settings`|
127
+
|`font-size`|`font-style`|`font-weight`|`line-height`|`list-style-type`|`list-style-position`|`padding`(including specific directions)|
128
+
|`margin` (including specific directions) |`text-align`|`text-decoration`|`text-decoration-color`|`text-decoration-style`|`text-shadow`||
129
129
130
130
Don't see a tag or attribute you need? File a feature request or contribute to the project!
131
131
@@ -252,6 +252,8 @@ A powerful API that allows you to customize everything when rendering a specific
252
252
253
253
To use this API, set the key as the tag of the HTML element you wish to provide a custom implementation for, and create a function with the above parameters that returns a `Widget` or `InlineSpan`.
254
254
255
+
Note: If you add any custom tags, you must add these tags to the [`tagsList`](#tagslist) parameter, otherwise they will not be rendered. See below for an example.
256
+
255
257
#### Example Usages - customRender:
256
258
1. Simple example - rendering custom HTML tags
257
259
@@ -276,6 +278,7 @@ Widget html = Html(
276
278
);
277
279
},
278
280
},
281
+
tagsList: Html.tags..addAll(["bird", "flutter"]),
279
282
);
280
283
```
281
284
@@ -304,6 +307,8 @@ Widget html = Html(
304
307
);
305
308
```
306
309
310
+
</details>
311
+
307
312
3. Complex example - rendering an `iframe` differently based on whether it is an embedded youtube video or some other embedded content.
0 commit comments