diff --git a/packages/flutter/lib/src/widgets/platform_view.dart b/packages/flutter/lib/src/widgets/platform_view.dart index 6573aa0261..54a0667e62 100644 --- a/packages/flutter/lib/src/widgets/platform_view.dart +++ b/packages/flutter/lib/src/widgets/platform_view.dart @@ -296,6 +296,124 @@ class UiKitView extends StatefulWidget { State createState() => _UiKitViewState(); } +/// Embeds an HTML element in the Widget hierarchy in Flutter Web. +/// +/// *NOTE*: This only works in Flutter Web. To embed web content on other +/// platforms, consider using the `flutter_webview` plugin. +/// +/// Embedding HTML is an expensive operation and should be avoided when a +/// Flutter equivalent is possible. +/// +/// The embedded HTML is painted just like any other Flutter widget and +/// transformations apply to it as well. This widget should only be used in +/// Flutter Web. +/// +/// {@macro flutter.widgets.platformViews.layout} +/// +/// Due to security restrictions with cross-origin `