imageItem function

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

Implementation

Widget imageItem(double tamanyo, double circle, String imagen,
    BuildContext context, double opacity) {
  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.withOpacity(opacity),
          width: circle,
        ),
        image: DecorationImage(
          fit: BoxFit.cover,
          image: AssetImage('images/$imagen'),
          colorFilter: ColorFilter.mode(
            Colors.white.withOpacity(opacity),
            BlendMode.modulate,
          ),
        ),
      ),
    ),
  );
}