PlexShimmer constructor

const PlexShimmer({
  1. Key? key,
  2. required Widget child,
  3. Gradient? gradient,
  4. PlexShimmerDirection direction = PlexShimmerDirection.leftToRight,
  5. Duration duration = const Duration(milliseconds: 1500),
  6. int shimmerEffectCount = 0,
  7. bool showShimmerEffect = true,
  8. bool showGradient = false,
  9. Color mainColor = Colors.grey,
  10. Color secondaryColor = const Color(0xffE0E0E0),
})

PlexShimmer shows shimmer effect.

Implementation

const PlexShimmer({
  super.key,
  required this.child,
  this.gradient,
  this.direction = PlexShimmerDirection.leftToRight,
  this.duration = const Duration(milliseconds: 1500),
  this.shimmerEffectCount = 0,
  this.showShimmerEffect = true,
  this.showGradient = false,
  this.mainColor = Colors.grey,
  this.secondaryColor = const Color(0xffE0E0E0),
});