block static method
Generates a standard rectangular skeleton block, automatically shimmering.
Implementation
static Widget block({
double? width,
double? height,
double borderRadius = 8.0,
EdgeInsetsGeometry? margin,
Color? staticColor,
bool animated = true,
Color? baseColor,
Color? highlightColor,
}) {
final shape = _buildShape(
width: width,
height: height,
borderRadius: borderRadius,
margin: margin,
color: staticColor,
);
if (!animated) return shape;
return RistoShimmer(
baseColor: baseColor,
highlightColor: highlightColor,
child: shape,
);
}