statsRow static method

Widget statsRow({
  1. int itemCount = 3,
})

Stats row skeleton

Implementation

static Widget statsRow({int itemCount = 3}) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
    children: List.generate(itemCount, (index) {
      return Column(
        children: const [
          SkeletonLoader(width: 40, height: 20, borderRadius: 4),
          SizedBox(height: 4),
          SkeletonLoader(width: 60, height: 12, borderRadius: 4),
        ],
      );
    }),
  );
}