ShimmerPro.sized constructor

ShimmerPro.sized({
  1. Key? key,
  2. int depth = 20,
  3. Duration duration = const Duration(seconds: 1),
  4. double? borderRadius = 10,
  5. Alignment? alignment = Alignment.center,
  6. ShimmerProLight? light = ShimmerProLight.darker,
  7. required Color scaffoldBackgroundColor,
  8. required double? height,
  9. required double? width,
})

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;
}