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
+23-39Lines changed: 23 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,8 +220,6 @@ Widget html = Html(
220
220
221
221
2. Complex example - rendering an `iframe` differently based on whether it is an embedded youtube video or some other embedded content
222
222
223
-
Packages used: [`data_connection_checker`](https://pub.dev/packages/data_connection_checker) and [`flutter_inappwebview`](https://pub.dev/packages/flutter_inappwebview)
224
-
225
223
<details><summary>View code</summary>
226
224
227
225
```dart
@@ -241,43 +239,29 @@ Widget html = Html(
241
239
return Container(
242
240
width: width ?? (height ?? 150) * 2,
243
241
height: height ?? (width ?? 300) / 2,
244
-
child: InAppWebView(
245
-
initialUrl: attributes['src'],
246
-
// recommended options when using this implementation
// no need for a scrolling gesture recognizer for embedded youtube videos so we only use VerticalDragGestureRecognizer when the iframe does not display embedded youtube videos
0 commit comments