mannprerak2 / event_hub_flutter

EventHub View events at DTU... https://mannprerak2.github.io/event_hub_flutter

Home Page:https://mannprerak2.github.io/event_hub_flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add and use a placeholder image

mannprerak2 opened this issue · comments

When the image link expires, no image is displayed and a white circle is seen (in thumbnails). Replace this with a placeholder image.

The placeholder can either be from assets or be a network image, but it must be copyright free.

Hi, @mannprerak2 Interesting!, can you give an example to understand it better, I would like to work on it now.

Hi @ravindrabhargava ,
If you open this => https://mannprerak2.github.io/event_hub_flutter/#/ or compile and run the app on an android device.

You can see that certain images are not displayed and are blank. This is because the link for the URL for the image is invalid or has expired. So you need to apply a placeholder image to it in that case.

You would need to figure out how these images are being shown and loaded. And then add a way to handle the case where the URL doesn't render and show a placeholder image instead.

For the placeholder, you can use some copyright-free image, you can either use a network image or add an asset for this purpose.

I would like to fix this for you @mannprerak2

Sure, go ahead @Himanshuranjan30

I will be making the PR soon. For this Issue. You can assign this to me @mannprerak2