ShimmerPro.text constructor
ShimmerPro.text({})
ShimmerPro.text must use text 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.
maxLine
is defoult 3. ShimmerPro.text will be generated this count.
textSize
is ShimmerPro.text's text size.Defoult 14.
Implementation
ShimmerPro.text(
{super.key,
this.depth = 20,
this.duration = const Duration(seconds: 1),
this.maxLine = 3,
this.textSize = 14,
this.borderRadius = 10,
this.alignment = Alignment.center,
this.light = ShimmerProLight.darker,
required this.scaffoldBackgroundColor,
this.width}) {
isText = true;
}