Package — Shimmer
Have you ever wonder how do apps like Netflix, Linkedin, etc. show their loading page while fetching data?
Flutter community is very grateful that we have package to do so in few steps.
Below is the Basic Implementation of shimmer package -
Installing steps -
- Run this command with Flutter:
$ flutter pub add shimmer
or add this to your package’s
2. Install packages from the command line with Flutter:
$ flutter pub get
3. Now in your Dart code, you can use:
Coding Part -
Just wrap custom layout in
Then, give base color & highlight color
Let's dig in a little bit
It looks great but let's customize more…
We can add duration for animation by which it will look a little realistic
give duration in
period : attribute
That’s all for now. Thank you for reading this article.
See you next time 👍.