CustomShimmerText function

Widget CustomShimmerText({
  1. double? height,
  2. double? width,
  3. double? radius,
})

Implementation

Widget CustomShimmerText({double? height, double? width, double? radius}) {
  return Shimmer.fromColors(
    baseColor: Colors.grey.shade300,
    highlightColor: Colors.grey.shade100,
    child: Container(height: height ?? Sizes.HEIGHT_24, width: width ?? null, decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(radius ?? Sizes.RADIUS_4))),
  );
}