A package provides an easy way to add shimmer effect in Flutter project
SizedBox( width: 200.0, height: 100.0, child: Shimmer.fromColors( baseColor: Colors.red, highlightColor: Colors.yellow, child: Text( 'Shimmer', textAlign: TextAlign.center, style: TextStyle( fontSize: 40.0, fontWeight: FontWeight.bold, ), ), ), );
directionproperty to allow customizing animation direction
A new Flutter project.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: shimmer: ^1.0.0
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.0||Jan 6, 2019|
|0.0.6||Nov 14, 2018|
|0.0.5||Aug 10, 2018|
|0.0.4||Jun 20, 2018|
|0.0.3||Jun 7, 2018|
|0.0.2||Jun 6, 2018|
|0.0.1||Jun 6, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/shimmer.dart. (-0.50 points)
lib/shimmer.dart reported 1 hint:
line 170 col 1: The member '_ShimmerFilter' is annotated with 'visibleForTesting', but this annotation is only meaningful on declarations of public members.