webview_all
适用于所有 Flutter 平台的 WebView
- 星标
- 58
- 复刻
- 23
- 最近推送(UTC)
- 2026年9月1日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
WebView All
A WebView component for all Flutter platforms, compatible with the webview_flutter API.
| Platform | Support | Implementation |
|---|---|---|
| Android | API 24+ | WebView |
| iOS | 13.0+ | WKWebView |
| macOS | 10.15+ | WKWebView |
| Windows | Win10 1809+ | WebView2 |
| Linux | webkit2gtk-4.1 | WebKitGTK |
| OHOS | API 12+ | ArkWeb |
| Web | Any | js-interop |
Features
- Comprehensive support for all platforms
- Full compatibility with the
webview_flutterAPI - Additional features:
- Promise-aware JavaScript calls
- Document-start user scripts
- Website data cleanup without a controller
- Deterministically closable offscreen sessions
- ......
Quick Start
- Instantiate a
WebViewController:
controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..loadRequest(Uri.parse('https://flutter.dev'));
- Pass
controllertoWebViewWidget:
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Flutter Simple Example')),
body: WebViewWidget(controller: controller),
);
}
For detailed usage, API coverage, and platform limits, see the Documentation.
语言DartSwiftC++KotlinJavaCMakePythonCShellTypeScriptHTMLRubyObjective-C
分类
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗