circle static method
Generates a circular skeleton block (e.g., for avatars).
Implementation
static Widget circle({
required double size,
EdgeInsetsGeometry? margin,
Color? staticColor,
bool animated = true,
Color? baseColor,
Color? highlightColor,
}) {
final shape = _buildShape(
width: size,
height: size,
shape: BoxShape.circle,
margin: margin,
color: staticColor,
);
if (!animated) return shape;
return RistoShimmer(
baseColor: baseColor,
highlightColor: highlightColor,
child: shape,
);
}