Flutter Web Images: Fix Network Image Not Loading

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 19

  • @hirick1322
    @hirick1322 Před 9 dny

    OMG man thank you so much without this video I would not have been able to find the solution

  • @samuelwakoli
    @samuelwakoli Před 7 dny

    Thank you man

  • @BayanIbrahim-vq5nx
    @BayanIbrahim-vq5nx Před měsícem

    you save me two hours of work, thx

  • @dev-t8t
    @dev-t8t Před 13 dny

    Hi! love your solution. but in my case its italicized all my text, any suggestion on why this happened?

  • @chenchou
    @chenchou Před 5 měsíci

    thank you, you make my life easier!

  • @hemilgandhi7861
    @hemilgandhi7861 Před 10 dny

    Even after deploying using html web renderer it does not work where as in debug it's working as expected. Only after deployment images are not loaded.

    • @1ManStartup
      @1ManStartup  Před 10 dny

      In that case you should just update the CORS policy for your images as shown in the 2nd half of the video

  • @dev-t8t
    @dev-t8t Před 13 dny

    Hi! love your solution, but its italicized all my text if use html renderer. any suggestion why this happened?

    • @1ManStartup
      @1ManStartup  Před 13 dny

      I'm not sure maybe the way you have your fonts setup is the cause check this github.com/flutter/flutter/issues/75832#issuecomment-1247712319
      If you watch the 2nd half of the video it'll show you how to fix the CORS issue and you can continue using canvaskit

  • @nozo8488
    @nozo8488 Před měsícem

    It only works for debug but how we can do for release?

    • @1ManStartup
      @1ManStartup  Před měsícem

      This shows how to fix images in production/ release. What isn't working for you?

  • @alisengul35
    @alisengul35 Před 6 měsíci

    Hello, I would be happy if I could get a quick answer. I build Flutter web and upload my files to the ftp server, I get a CORS error. I didn't use Github. Can I overcome CORS error without using Github, please help me

    • @1ManStartup
      @1ManStartup  Před 6 měsíci

      Yes, the CORS error would be fixed where you are hosting the images, it actually has nothing to do with Github. In this example I host my images in AWS S3 so that's where I added the CORS policy.
      If you are hosting your images on your own server then you need to add the CORS policy there so that images served from your server can be accessed by your website

  • @wseymondzongo100
    @wseymondzongo100 Před 5 měsíci

    Hello i tried to upload one image through web on firebase using image_picker but error happened: Unsupported operation: Platform._operatingSystem. Can you help me???
    Thanks in advance!

    • @1ManStartup
      @1ManStartup  Před 5 měsíci +1

      For web you need to use image_picker_for_web

  • @santhoshkumar-wf4hu
    @santhoshkumar-wf4hu Před 3 měsíci

    Can you explain what is createcodec url ??