imageItem function
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,
),
),
),
),
);
}