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
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets.
98
98
Add the following to your `pubspec.yaml` file:
99
99
100
100
dependencies:
101
-
flutter_html: ^2.1.1
101
+
flutter_html: ^2.2.1
102
102
103
103
## Currently Supported HTML Tags:
104
104
||||||||||||
@@ -185,6 +185,7 @@ Once the above issue is resolved, the aforementioned compromises will go away. C
185
185
|`style`| A powerful API that allows you to customize the style that should be used when rendering a specific HTMl tag. |
186
186
|`navigationDelegateForIframe`| Allows you to set the `NavigationDelegate` for the `WebView`s of all the iframes rendered by the `Html` widget. |
187
187
|`customImageRender`| A powerful API that allows you to fully customize how images are loaded. |
188
+
|`selectionControls`| A custom text selection controls that allow you to override default toolbar and build toolbar with custom text selection options. See an [example](https://github.com/justinmc/flutter-text-selection-menu-examples/blob/master/lib/custom_menu_page.dart). |
188
189
189
190
### Getters:
190
191
@@ -268,13 +269,13 @@ Inner links (such as `<a href="#top">Back to the top</a>` will work out of the b
268
269
269
270
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!
270
271
271
-
`customRender` accepts a `Map<CustomRenderMatcher, CustomRender>`.
272
+
`customRender` accepts a `Map<CustomRenderMatcher, CustomRender>`.
272
273
273
274
`CustomRenderMatcher` is a function that requires a `bool` to be returned. It exposes the `RenderContext` which provides `BuildContext` and access to the HTML tree.
274
275
275
276
The `CustomRender` class has two constructors: `CustomRender.widget()` and `CustomRender.inlineSpan()`. Both require a `<Widget/InlineSpan> Function(RenderContext, Function())`. The `Function()` argument is a function that will provide you with the element's children when needed.
276
277
277
-
To use this API, create a matching function and an instance of `CustomRender`.
278
+
To use this API, create a matching function and an instance of `CustomRender`.
278
279
279
280
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.
0 commit comments