Shimmer constructor

const Shimmer({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(seconds: 2),
  4. double speedFactor = 1.0,
  5. Color baseColor = const Color(0xFFE0E0E0),
  6. Color highlightColor = const Color(0xFFF5F5F5),
  7. List<Color>? gradientColors,
  8. ShimmerDirection direction = ShimmerDirection.leftToRight,
  9. ShimmerEffect effect = ShimmerEffect.classic,
  10. Duration? disableAfter,
  11. double? shimmerAngle,
  12. double shimmerSizeFactor = 1.0,
})

Implementation

const Shimmer({
  super.key,
  required this.child,
  this.duration = const Duration(seconds: 2),
  this.speedFactor = 1.0,
  this.baseColor = const Color(0xFFE0E0E0),
  this.highlightColor = const Color(0xFFF5F5F5),
  this.gradientColors,
  this.direction = ShimmerDirection.leftToRight,
  this.effect = ShimmerEffect.classic,
  this.disableAfter,
  this.shimmerAngle,
  this.shimmerSizeFactor = 1.0,  // Default to normal size
});