Flutter Web Images: Fix Network Image Not Loading

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 20

  • @lordew9476
    @lordew9476 День тому

    That first solution is for me😅 THANK YOU ❤ i have no idea when my web app dont display my images

  • @hirick1322
    @hirick1322 19 днів тому +1

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

  • @samuelwakoli
    @samuelwakoli 18 днів тому

    Thank you man

  • @dev-t8t
    @dev-t8t 24 дні тому

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

  • @BayanIbrahim-vq5nx
    @BayanIbrahim-vq5nx 2 місяці тому

    you save me two hours of work, thx

  • @hemilgandhi7861
    @hemilgandhi7861 20 днів тому

    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  20 днів тому

      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 24 дні тому

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

    • @1ManStartup
      @1ManStartup  23 дні тому

      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

  • @chenchou
    @chenchou 6 місяців тому

    thank you, you make my life easier!

  • @nozo8488
    @nozo8488 Місяць тому

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

    • @1ManStartup
      @1ManStartup  Місяць тому

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

  • @alisengul35
    @alisengul35 6 місяців тому

    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  6 місяців тому

      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 6 місяців тому

    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  6 місяців тому +1

      For web you need to use image_picker_for_web

  • @santhoshkumar-wf4hu
    @santhoshkumar-wf4hu 4 місяці тому

    Can you explain what is createcodec url ??

    • @1ManStartup
      @1ManStartup  4 місяці тому

      Where are you seeing this?