Flutter Shimmer:
In this tutorial, we are going to learn to create a shimmer effect. The shimmer effect is some animation effect like the movement of a gradient from left to right. used in Flutter Apps. Think about the ‘Slide to unlock’ animation when you wake up your Phone.
In this tutorial, we are creating two types of shimmer effects in Flutter App:
- drawing an opaque gradient area in the top of content layout.
- the ‘Slide to unlock’ animation that movement of a gradient from left to right
Follow the below steps to create a shimmer effect in Flutter App:
To create a shimmer effect in flutter we have to add it’s dependency package into the pubspec.yaml file. Use the below code to add the dependency package.