circlePlaceholder static method

Widget circlePlaceholder({
  1. required BuildContext context,
  2. double? size,
})

Builds a circular shimmer placeholder (for avatars).

Implementation

static Widget circlePlaceholder({
  required BuildContext context,
  double? size,
}) {
  final theme = UIProTheme.of(context);
  final effectiveSize = size ?? 40;
  return Container(
    width: effectiveSize,
    height: effectiveSize,
    decoration: BoxDecoration(
      color: theme.shimmerBaseColor,
      shape: BoxShape.circle,
    ),
  );
}