{"id":18011357,"url":"https://github.com/mhmzdev/flutter_chrome_extension","last_synced_at":"2025-03-26T15:32:51.109Z","repository":{"id":49333012,"uuid":"494642431","full_name":"mhmzdev/flutter_chrome_extension","owner":"mhmzdev","description":"A very basic example of using flutter web as chrome extension","archived":false,"fork":false,"pushed_at":"2022-05-21T00:38:39.000Z","size":197,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-22T02:03:10.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhmzdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-21T00:37:51.000Z","updated_at":"2024-06-19T02:42:10.000Z","dependencies_parsed_at":"2022-09-15T21:02:53.621Z","dependency_job_id":null,"html_url":"https://github.com/mhmzdev/flutter_chrome_extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmzdev%2Fflutter_chrome_extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmzdev%2Fflutter_chrome_extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmzdev%2Fflutter_chrome_extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmzdev%2Fflutter_chrome_extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhmzdev","download_url":"https://codeload.github.com/mhmzdev/flutter_chrome_extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245681588,"owners_count":20655225,"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","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":[],"created_at":"2024-10-30T03:09:46.707Z","updated_at":"2025-03-26T15:32:50.556Z","avatar_url":"https://github.com/mhmzdev.png","language":"C++","readme":"## Flutter Chrome Extension\n\n## Steps\nFollow the Following step to generate Flutter web app as Chrome Extension\n\n### 1. Remove Extra Scripts from `web/index.html`\nRemove all the `\u003cscript\u003e` tags from `web/index.html` and replace with the below code.\n\n```html\n\u003cbody\u003e\n  \u003cscript src=\"main.dart.js\" type=\"application/javascript\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n\n### 2. Add the Following to top `\u003chtml\u003e` tag\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml style=\"height: 600px; width: 350px\"\u003e\n```\n\n### 3. Replace the `web/manifest.json` with following code\n\n```json\n{\n    \"name\": \"flutter_chrome_extension\",\n    \"description\": \"Flutter Chrome Extension\",\n    \"version\": \"1.0.0\",\n    \"content_security_policy\": {\n        \"extension_pages\": \"script-src 'self' ; object-src 'self'\"\n    },\n    \"action\": {\n        \"default_popup\": \"index.html\",\n        \"default_icon\": \"icons/Icon-192.png\"\n    },\n    \"manifest_version\": 3\n}\n```\n\n### 4. Build web app with `--web-renderer html --csp`\n\n```\nflutter build web --web-renderer html --csp\n```\n\n## Adding to Chrome Extension\nFollow the following steps:\n\n### 1. Open `chrome://extensions`\nOr if you are using edge then `edge://extensions`\n\nEnable **Developer Mode**\n\n### 2. Load Unpacked\nClick on load unpacked and open the `build/web` folder\n\n## 🥳 Your extension is now avaialable!!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhmzdev%2Fflutter_chrome_extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhmzdev%2Fflutter_chrome_extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhmzdev%2Fflutter_chrome_extension/lists"}