本文翻译自pub: webview_flutter | Flutter Package (flutter-io.cn)
译时版本: webview_flutter 3.0.0
用于 Flutter 的 WebView
提供 WebView 组件的 Flutter 插件。
在 iOS 上 WebView 组件基于 WKWebView;在 Android 上 WebView 组件基于 WebView 。
用法
添加 webview_flutter
依赖到 pubspec.yaml file 中。 如果目标平台是 Android,要确认阅读下面的 Android Platform Views 部分来选择最适合需要的平台 View 模式。
现在可以在组件树中加入 WebView 组件。查看 WebView 组件的文档了解更多如何使用该组件的内容。<