rectangular static method

Widget rectangular({
  1. required double? width,
  2. required double? height,
  3. Color baseColor = Colors.grey,
  4. Color highlightColor = Colors.white,
  5. double? borderRadius = 0,
  6. EdgeInsets? margin,
  7. EdgeInsets? padding,
  8. bool enabled = true,
})

Implementation

static Widget rectangular({
  required double? width,
  required double? height,
  Color baseColor = Colors.grey,
  Color highlightColor = Colors.white,
  double? borderRadius = 0,
  EdgeInsets? margin,
  EdgeInsets? padding,
  bool enabled = true,
}) {
  return Shimmer.fromColors(
    enabled: enabled,
    baseColor: baseColor,
    highlightColor: highlightColor,
    child: Container(
      margin: margin,
      padding: padding,
      width: width,
      height: height,
      decoration: BoxDecoration(
        color: Get.theme.shadowColor.withAlpha(150),
        borderRadius: BorderRadius.circular(borderRadius!),
      ),
    ),
  );
}