{"id":32280658,"url":"https://github.com/iamyours/webview_flutter","last_synced_at":"2025-10-23T00:46:49.835Z","repository":{"id":56833211,"uuid":"222693276","full_name":"iamyours/webview_flutter","owner":"iamyours","description":"base on webview_flutter,intercept request and load resource from local","archived":false,"fork":false,"pushed_at":"2019-11-25T07:18:15.000Z","size":50010,"stargazers_count":10,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T00:46:32.971Z","etag":null,"topics":["offline","webview-flutter"],"latest_commit_sha":null,"homepage":"https://juejin.im/post/5dd610255188255d8c4adc29","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamyours.png","metadata":{"files":{"readme":"README.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}},"created_at":"2019-11-19T12:40:26.000Z","updated_at":"2025-08-22T10:13:59.000Z","dependencies_parsed_at":"2022-09-08T07:50:14.790Z","dependency_job_id":null,"html_url":"https://github.com/iamyours/webview_flutter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamyours/webview_flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyours%2Fwebview_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyours%2Fwebview_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyours%2Fwebview_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyours%2Fwebview_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamyours","download_url":"https://codeload.github.com/iamyours/webview_flutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyours%2Fwebview_flutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280540644,"owners_count":26347724,"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-10-22T02:00:06.515Z","response_time":63,"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":["offline","webview-flutter"],"created_at":"2025-10-23T00:46:48.276Z","updated_at":"2025-10-23T00:46:49.829Z","avatar_url":"https://github.com/iamyours.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebView for flutter\n\nBase on [webview_flutter](https://pub.dev/packages/webview_flutter), add some new features.\n- backgroundColor\n- onProgressChanged\n- shouldInterceptRequest: intercept request and load resource from local.\n- onScroll: listen webview scroll.\n\n### how to use\n```\ndependencies:\n  iwebview_flutter: ^latest version\n```\n\n``` dart\nWebView(\n      initialUrl: \"https://www.google.com\",\n      javascriptMode: JavascriptMode.unrestricted,\n      debuggingEnabled: true,\n      onProgressChanged: (int p){//0-100\n        setState(() {\n          progress = p/100.0;\n        });\n      },\n      onScroll(int x,int y){\n\n      },\n      backgroundColor: Colors.red,\n      shouldInterceptRequest: (String url) async {//replace google logo\n        var googleLogo = \"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png\";\n        print(\"============url:$url\");\n        if (url == googleLogo) {\n          ByteData data = await rootBundle.load(\"assets/baidu.png\");\n          Uint8List bytes = Uint8List.view(data.buffer);\n          return Response(\"image/png\", null, bytes);\n        }\n        return null;\n      },\n),\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamyours%2Fwebview_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamyours%2Fwebview_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamyours%2Fwebview_flutter/lists"}