shimmer_animation 0.1.0+1 copy "shimmer_animation: ^0.1.0+1" to clipboard
shimmer_animation: ^0.1.0+1 copied to clipboard

outdated

This animation widget can help you bring simple yet beutiful animations to your project with ease.

Shimmer Animation #

pub package Libraries.io dependency status for latest release License

Moved from Pre-release to Beta Testing

This animation widget can help you bring simple yet beautiful shimmer animations to your project with ease.

Examples #

An example can be found in the example directory of this repository.

A list of detailed examples can be found in this Examples Repository

Full Screen Loading Widgets Loading Buttons

How to use #

Add shimmer_animation to pubspec.yaml of your project:

dependencies:
  shimmer_animation: ^0.1.0

Import it in your Dart code:

import 'package:shimmer_animation/shimmer_animation.dart';

Wrap any widget with Shimmer() widget to apply animaton:

  Shimmer(
    duration: Duration(seconds: 3), //Default value
    color: Colors.white, //Default value
    enabled: true, //Default value
    direction: ShimmerDirection.fromLTRB(),  //Default Value
    child: Container(
      color: Colors.deepPurple,
    ),
  ),

Parameters: #

  • required child : accepts a child Widget over which the animation is to be displayed
  • color : accepts a parameter of type Color and sets the color of the animation overlay. Default value is Colors.white
  • enabled : accepts a bool toggles animation. Default value is true
  • duration : accepts a Duration that would be the time period of animation. Default value is Duration(seconds: 3)
  • direction : accepts a ShimmerDirection and aligns the animation accordingly. Default value is ShimmerDirection.fromLBRT()

License #

MIT License.

417
likes
0
pub points
99%
popularity

Publisher

unverified uploader

This animation widget can help you bring simple yet beutiful animations to your project with ease.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on shimmer_animation