I have this grid view item:
As you can see, the image isn't filling all the container (green area). I would like to fill it all; in other words, there would be no green color.
This is the code for the container:
Container(
width: width,
alignment: Alignment.centerRight,
child: Container(
// padding: EdgeInsets.all(4),
width: width * 0.2,
decoration: const BoxDecoration(
color: Colors.green,
borderRadius: BorderRadius.only(
topRight: Radius.circular(10),
bottomRight: Radius.circular(20),
topLeft: Radius.circular(45),
bottomLeft: Radius.circular(10),
),
),
child: Image.network(output['image'],
fit: BoxFit.fill,
loadingBuilder:
(context, child,
loadingProgress) {
if (loadingProgress == null) {
return child;
} else {
return const Center(
child: CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation<
Color>(
Colors.white)));
}
}),
),
),


