SkeletonWidget constructor

SkeletonWidget({
  1. double? height,
  2. double? width,
  3. Widget? child,
  4. Key? key,
})

Implementation

SkeletonWidget({
  double? height,
  double? width,
  Widget? child,
  super.key,
}) : super.fromColors(
        baseColor: ColorName.gray100,
        highlightColor: ColorName.white,
        child: child ??
            Container(
              width: width,
              height: height,
              decoration: BoxDecoration(
                color: ColorName.gray50,
                borderRadius: BorderRadius.circular(4),
              ),
            ),
      );