circle static method

Widget circle({
  1. required double size,
  2. EdgeInsetsGeometry? margin,
  3. Color? staticColor,
  4. bool animated = true,
  5. Color? baseColor,
  6. Color? highlightColor,
})

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,
  );
}