NeoPopShimmer constructor
const
NeoPopShimmer({})
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);