GFShimmer constructor
const
GFShimmer({
- Key? key,
- required Widget child,
- Gradient? gradient,
- GFShimmerDirection direction = GFShimmerDirection.leftToRight,
- Duration duration = const Duration(milliseconds: 1500),
- int shimmerEffectCount = 0,
- bool showShimmerEffect = true,
- bool showGradient = false,
- Color mainColor = Colors.grey,
- 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);