vostpt / covid19-mobile

"EstamosOn - Covid19" - Mobile App made with Flutter to inform citizens about Covid19 status in Portugal
https://covid19estamoson.gov.pt/
GNU Lesser General Public License v3.0
30 stars 8 forks source link

Slider images don't load on launch #225

Closed ffrutuoso closed 3 years ago

ffrutuoso commented 4 years ago

VIDEO HERE

Slider images should be preloaded before user interaction.

Vanethos commented 4 years ago

We will have to load all the slides initially instead of creating them while we are sliding. Still, the first image may take some time to pop up

ffrutuoso commented 4 years ago

You can extended the splash page until the loading is done. I've included in the rive file a "standby" animation if needed.

This way, the image load would be hidden on start.

Vanethos commented 4 years ago

This won't work out-of the box, since usually network images are only loaded when needed, i.e., when we are viewing them in the page.

What could be better is to use an animation while we are loading the images.

Maybe a shimmer effect like the one presented here?

https://raw.githubusercontent.com/hnvn/flutter_shimmer/master/screenshots/loading_list.gif

https://pub.dev/packages/shimmer

ffrutuoso commented 4 years ago

I'm ok with using this as a compromise, but I still think the slider images should be ready on first view. At least the first image should be loaded once the app opens.