{"id":22393501,"url":"https://github.com/moluopro/webview_all","last_synced_at":"2025-07-31T10:32:00.605Z","repository":{"id":183205981,"uuid":"669713137","full_name":"moluopro/webview_all","owner":"moluopro","description":"Webview for All Flutter Platform","archived":false,"fork":false,"pushed_at":"2025-05-13T06:04:46.000Z","size":421,"stargazers_count":25,"open_issues_count":13,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T09:05:24.411Z","etag":null,"topics":["android","cross-platform","flutter","ios","macos","multiplatform","web","webview","windows"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/webview_all","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moluopro.png","metadata":{"files":{"readme":"README.ZH.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-23T07:22:16.000Z","updated_at":"2025-05-13T06:04:49.000Z","dependencies_parsed_at":"2025-05-13T07:33:29.491Z","dependency_job_id":null,"html_url":"https://github.com/moluopro/webview_all","commit_stats":null,"previous_names":["moluopro/webview_all"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/moluopro/webview_all","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fwebview_all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fwebview_all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fwebview_all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fwebview_all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moluopro","download_url":"https://codeload.github.com/moluopro/webview_all/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fwebview_all/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268024553,"owners_count":24183149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cross-platform","flutter","ios","macos","multiplatform","web","webview","windows"],"created_at":"2024-12-05T05:05:50.560Z","updated_at":"2025-07-31T10:32:00.593Z","avatar_url":"https://github.com/moluopro.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Webview for All Flutter Platform  \n\n[English Doc](https://github.com/moluopro/webview_all/blob/main/README.md) \u0026nbsp;\u0026nbsp;\u0026nbsp;[中文文档](https://github.com/moluopro/webview_all/blob/main/README.ZH.md)  \n\n支持所有Flutter平台的Webview组件 (基于社区现有的库)  \n\n|| Platform | Status   | Note     |\n|-| -------- | -------- | -------- |\n|| Android  | ✅      | SDK 20+  |\n|| IOS      | ✅      | SDK 9+   |\n|| Web      | ✅      | Any      |\n|| Windows  | ✅      | Win 10+  |\n|| macOS    | ✅      | Any      |\n|| Linux    | ✅      | Any      |\n  \n\u003e ⚠：Linux平台还需要更多的测试。  \n\n### 快速开始  \n\n1. 将`webview_all`添加进[依赖](https://pub.dev/packages/webview_all/install) (`pubspec.yaml`文件).  \n\n2. 直接像这样使用即可：   \n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:webview_all/webview_all.dart';\n\nvoid main() =\u003e runApp(const MyApp());\n\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return const MaterialApp(\n      title: 'Webview All',\n      debugShowCheckedModeBanner: false,\n      home: MyBrowser(),\n    );\n  }\n}\n\nclass MyBrowser extends StatefulWidget {\n  const MyBrowser({Key? key, this.title}) : super(key: key);\n  final String? title;\n  \n  @override\n  _MyBrowserState createState() =\u003e _MyBrowserState();\n}\n\nclass _MyBrowserState extends State\u003cMyBrowser\u003e {\n  @override\n  Widget build(BuildContext context) {\n    return const Scaffold(\n        body: Center(\n          // 看这里！  \n          child: Webview(url: \"https://www.wechat.com/en\")\n      )\n    );\n  }\n}\n```   \n\n运行`flutter run -d windows`，然后您将看到:  \n\n![example](https://s1.ax1x.com/2023/07/24/pCOJIN4.png)  \n\u003cbr\u003e\n\n### Detail  \n\nOn `iOS/macOS` the Webview widget is backed by a [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview).  \n\nOn `Android` the Webview widget is backed by a [WebView](https://developer.android.com/reference/android/webkit/WebView).  \n\nOn `Web` the Webview widget will use the `webview_flutter_web` plugin.   \n\nOn `Windows` the Webview widget will use the `webview_windows` plugin.   \n\nOn `Linux` the Webview widget will use the `webview_cef` plugin.   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoluopro%2Fwebview_all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoluopro%2Fwebview_all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoluopro%2Fwebview_all/lists"}