ShimmerPro.generated constructor

ShimmerPro.generated({
  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. double? width,
  9. double? height,
  10. required Widget? child,
})

ShimmerPro.generated must use children widgets. You can delegate width ;ShimmerPro.text generate text 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.text generate from this color. child must be Column or Row for best seen.

Implementation

ShimmerPro.generated(
    {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,
    this.width,
    this.height,
    required this.child}) {
  isGenerated = true;
}