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