how can I box fit an image network within the container with a border radius
Container(
width: 100,
height: 100,
child: Image.network(
snapshot.data!,
fit: BoxFit.cover,
),
),
>Solution :
ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Container(
height: 100.0,
width: 100.0,
child: Image.network(
snapshot.data!,
height: 100.0,
width: 100.0,
),)
)