ShimmerPro.generated constructor
ShimmerPro.generated({})
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;
}