mannprerak2 / event_hub_flutter

EventHub View events at DTU... https://mannprerak2.github.io/event_hub_flutter
https://mannprerak2.github.io/event_hub_flutter
MIT License
8 stars 15 forks source link

Add and use a placeholder image #4

Closed mannprerak2 closed 4 years ago

mannprerak2 commented 4 years ago

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.

ravindrabhargava commented 4 years ago

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

ravindrabhargava commented 4 years ago

/assign

mannprerak2 commented 4 years ago

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.

Himanshuranjan30 commented 4 years ago

I would like to fix this for you @mannprerak2

mannprerak2 commented 4 years ago

Sure, go ahead @Himanshuranjan30

AlKun25 commented 4 years ago

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