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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ A Flutter widget for rendering HTML and CSS as Flutter widgets.
39
39
40
40
-[Parameters Table](#parameters)
41
41
42
+
-[Methods](#methods)
43
+
42
44
-[Getters](#getters)
43
45
44
46
-[Data](#data)
@@ -187,12 +189,26 @@ Once the above issue is resolved, the aforementioned compromises will go away. C
187
189
|`customImageRender`| A powerful API that allows you to fully customize how images are loaded. |
188
190
|`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). |
189
191
192
+
### Methods:
193
+
194
+
| Methods | Description |
195
+
|--------------|-----------------|
196
+
|`disposeAll()`| Disposes all `ChewieController`s, `ChewieAudioController`s, and `VideoPlayerController`s being used by every `Html` widget. (Note: `Html` widgets automatically dispose their controllers, this method is only provided in case you need other behavior) |
197
+
190
198
### Getters:
191
199
192
200
1.`Html.tags`. This provides a list of all the tags the package renders. The main use case is to assist in excluding elements using `tagsList`. See an [example](#example-usage---tagslist---excluding-tags) below.
193
201
194
202
2.`SelectableHtml.tags`. This provides a list of all the tags that can be rendered in selectable mode.
195
203
204
+
3.`Html.chewieAudioControllers`. This provides a list of all `ChewieAudioController`s being used by `Html` widgets.
205
+
206
+
4.`Html.chewieControllers`. This provides a list of all `ChewieController`s being used by `Html` widgets.
207
+
208
+
5.`Html.videoPlayerControllers`. This provides a list of all `VideoPlayerController`s being used for video widgets by `Html` widgets.
209
+
210
+
6.`Html.audioPlayerControllers`. This provides a list of all `VideoPlayerController`s being used for audio widgets by `Html` widgets.
211
+
196
212
### Data:
197
213
198
214
The HTML data passed to the `Html` widget as a `String`. This is required and cannot be null when using `Html`.
0 commit comments