imageItem function
- double tamanyo,
- double circle,
- String image,
- 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'),
),
),
),
);
}