ดูวิธีการทำ บน fluter (1.x) ที่ลิงค์นี้
https://www.bloggang.com/mainblog.php?id=thaiger&month=28-05-2021&group=7&gblog=18build web ด้วยคำสั่ง
flutter build web --web-renderer html --csp
แก้ไข manifest.json
{
"name": "flutter_chrome_extension",
"description": "flutter_chrome_extension",
"version": "1.0.0",
"content_security_policy": {
"extension_pages": "script-src 'self' ; object-src 'self'"
},
"action": {
"default_popup": "index.html",
"default_icon": "/icons/Icon-192.png"
},
"manifest_version": 3
}