NeoPopShimmer constructor

const NeoPopShimmer({
  1. Key? key,
  2. required Widget child,
  3. AnimationController? controller,
  4. Duration duration = kShimmerDuration,
  5. bool enabled = true,
  6. bool isTiltedLeft = false,
  7. double shimmerWidth = kShimmerWidth,
  8. double shimmerGapWidth = kShimmerGapWidth,
  9. Color shimmerColor = kShimmerColor,
  10. Duration delay = kShimmerDelay,
})

Create NeoPop shimmer effect.

The child is the widget over which the shimmer effect is painted. The shimmerColor and shimmerWidth are used to paint the shimmer. Shimmer consists of two lines. The width of the first line is shimmerWidth and the width of the second line is shimmerWidth/2.

By default the animation duration of the shimmer is set to 3 seconds and the width is set to 10.0. The delay property can be used to set the delay between the two shimmer cycles.

The tilt of the shimmer can be controlled by the isTiltedLeft property. By default the shimmer is tilted to the right.

Implementation

const NeoPopShimmer({
  Key? key,
  required this.child,
  this.controller,
  this.duration = kShimmerDuration,
  this.enabled = true,
  this.isTiltedLeft = false,
  this.shimmerWidth = kShimmerWidth,
  this.shimmerGapWidth = kShimmerGapWidth,
  this.shimmerColor = kShimmerColor,
  this.delay = kShimmerDelay,
}) : super(key: key);