flutterdartgoogle-chrome

HTML Render is not working on flutter 3.29.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 ?


Solution

    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/...