app-center icon indicating copy to clipboard operation
app-center copied to clipboard

Use shimmer effect for loading content

Open Feichtmeier opened this issue 2 years ago โ€ข 7 comments

For all pages (Explore, MyApps, AppPage) it would be nice to have a shimmer effect for loading content, instead of spinning indicators. We could use this package for this

https://pub.dev/packages/shimmer

Feichtmeier avatar Oct 03 '22 09:10 Feichtmeier

I couldn't find any design examples, so I made a few quick suggestions using the linked package and taking preset values from YaruBanner. I'd like to try and implement this, if a design is agreed upon.

white_blank white_fill white_outline

jkerola avatar Oct 04 '22 14:10 jkerola

The first one looks solid!

Let's see what the design thinks CC @anasereijo @elioqoshi @madsrh

Feichtmeier avatar Oct 04 '22 14:10 Feichtmeier

The loading banner should look as close as possible to the loaded one. So imo, the second one is the best, but maybe with three thinner text like container.

Jupi007 avatar Oct 04 '22 14:10 Jupi007

The loading banner should look as close as possible to the loaded one...

+1 but there might still be design changes, so I would not spend a ton of time fine-tuning this - better just get it in the IMO

madsrh avatar Oct 04 '22 15:10 madsrh

As @Jupi007 mentioned above, the loading skeleton should be similar to the loaded content, as it gives users a visual cue that content is being loaded.

@Feichtmeier โ€“ will it be possible to load progressively the content as it becomes available? I believe that's the purpose of having a skeleton screen.

anasereijo avatar Oct 04 '22 16:10 anasereijo

The loading banner should look as close as possible to the loaded one...

+1 but there might still be design changes, so I would not spend a ton of time fine-tuning this - better just get it in the IMO

You're right ๐Ÿ‘

So maybe do the simplest model possible: the first one, and add a TODO comment (and an issue) to remember to make the placeholder looks like the target content, once the design is stabilised.

Jupi007 avatar Oct 04 '22 16:10 Jupi007

As @Jupi007 mentioned above, the loading skeleton should be similar to the loaded content, as it gives users a visual cue that content is being loaded.

@Feichtmeier โ€“ will it be possible to load progressively the content as it becomes available? I believe that's the purpose of having a skeleton screen.

Yes we could load the skeleton ๐Ÿฆด thing first then slowly fill it up with results for example Or we could use the skeleton for when the snap names are loaded but not yet the images (which is hardly visible with medium internet speed, but still. Maybe 1 second)

Feichtmeier avatar Oct 07 '22 15:10 Feichtmeier