GFShimmer constructor

const GFShimmer({
  1. Key? key,
  2. required Widget child,
  3. Gradient? gradient,
  4. GFShimmerDirection direction = GFShimmerDirection.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 = GFColors.LIGHT,
})

GFShimmer shows shimmer effect.

Implementation

const GFShimmer({
  Key? key,
  required this.child,
  this.gradient,
  this.direction = GFShimmerDirection.leftToRight,
  this.duration = const Duration(milliseconds: 1500),
  this.shimmerEffectCount = 0,
  this.showShimmerEffect = true,
  this.showGradient = false,
  this.mainColor = Colors.grey,
  this.secondaryColor = GFColors.LIGHT,
}) : super(key: key);