imageSelect function
- BuildContext context,
- String type,
- int n
Implementation
Container imageSelect(BuildContext context, String type, int n) {
return Container(
height: defaultHeight * 0.075,
width: defaultHeight * 0.075,
margin: EdgeInsets.only(right: defaultWidth * 0.025),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
border: Border.all(
color: Theme.of(context).colorScheme.primary,
width: 3,
),
image: DecorationImage(
fit: BoxFit.contain,
image: AssetImage("images/avatars/$type/$n.webp"),
),
),
);
}