textPlaceholder static method

Widget textPlaceholder({
  1. required BuildContext context,
  2. double? width,
  3. double? height,
})

Builds a text-like shimmer placeholder.

Implementation

static Widget textPlaceholder({
  required BuildContext context,
  double? width,
  double? height,
}) {
  final theme = UIProTheme.of(context);
  return Container(
    width: width ?? double.infinity,
    height: height ?? theme.fontSizeBase,
    decoration: BoxDecoration(
      color: theme.shimmerBaseColor,
      borderRadius: BorderRadius.circular(theme.borderRadiusSmall / 2),
    ),
  );
}