imageItem function

Widget imageItem(
  1. double tamanyo,
  2. double circle,
  3. String image,
  4. BuildContext context
)

Implementation

Widget imageItem(
    double tamanyo, double circle, String image, BuildContext context) {
  return SizedBox(
    height: tamanyo,
    width: tamanyo,
    child: Container(
      decoration: BoxDecoration(
        shape: BoxShape.circle,
        color: Colors.white,
        border: Border.all(
          color: Theme.of(context).colorScheme.primary,
          width: circle,
        ),
        image: DecorationImage(
          fit: BoxFit.cover,
          image: AssetImage('images/$image'),
        ),
      ),
    ),
  );
}