ShimmerPro.sized constructor
ShimmerPro.sized({})
ShimmerPro.sized must use sized widgets. With using width and height ;ShimmerPro.sized generate sized shimmer. duration animation duration. borderRadius sized widget border radius. alignment sized vidget alignment. Defoult Alignment.center. light shimmer is lighter color or darker color. scaffoldBackgroundColor must be geven. ShimmerPro.sized generate from this color.
Implementation
ShimmerPro.sized({
super.key,
this.depth = 20,
this.duration = const Duration(seconds: 1),
this.borderRadius = 10,
this.alignment = Alignment.center,
this.light = ShimmerProLight.darker,
required this.scaffoldBackgroundColor,
required this.height,
required this.width,
}) {
isSized = true;
}