最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

dart - HTML Render is not working on flutter 3.29.0 - Stack Overflow

programmeradmin1浏览0评论

API network images are not shows on flutter web once I update flutter to 3.29.0. I used to run html render command and the images was showing so fine but once I update flutter the command is not working any more. Is there are any other command are just work the same as html render ?

API network images are not shows on flutter web once I update flutter to 3.29.0. I used to run html render command and the images was showing so fine but once I update flutter the command is not working any more. Is there are any other command are just work the same as html render ?

Share Improve this question asked Mar 7 at 8:23 RichardRichard 451 silver badge5 bronze badges 2
  • can you elaborate on the detailed error log from terminal? – shotmeinthehead Commented Mar 7 at 9:20
  • it shows this message : Could not find an option named "--web-renderer". – Richard Commented Mar 7 at 9:39
Add a comment  | 

3 Answers 3

Reset to default 1

As @Richard mentioned the error is : Could not find an option named "--web-renderer"

I have found the same problem mentioned in https://github/flutter/flutter/issues/163199

Try following solution from @Crucialjun

"Go to vscode settings and search for "flutterWebRenderer" set the value to flutter-default on both user and workspace"

if that does not work, try doing a further reading into https://github/flutter/flutter/issues/145954

The team made a breaking changes on that, and the discussion is still going

The HTML renderer is removed from Flutter 3.29.

For more information, visit The intent to deprecate and remove the HTML renderer in Flutter web and Issue 145584: Intent to deprecate and remove the HTML renderer in Flutter web.

  1. Open Firebase Project > in project overview (project settings) > Service accounts >Manage service account permission.

  2. click on terminal on top right and machine is running.

  3. After that, type these:

    echo '[{ "origin": ["*"], "method": ["GET", "HEAD"], "maxAgeSeconds": 3600, "responseHeader": ["Content-Type", "Access-Control-Allow-Origin"] }]' > cors.json

  4. then write these and replace the address (football-abcd) with your firebase storage bucket.

  5. gsutil cors set cors.json gs://football-abcd.firebasestorage.app

  6. Congratulations.

  7. Setting CORS on gs://football-abcd.firebasestorage.app/...

发布评论

评论列表(0)

  1. 暂无评论