I need to design a Container as displayed in the center, below.
Here is my code for doing so:
Container(
width: 48,
height: 48,
decoration: SideBarStyles.recentItem,
child: Image.network(
'https://placeimg.com/640/480/any',
fit: BoxFit.cover,
),
),
SideBarStyles.recentItem value
static BoxDecoration recentItem = BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(25)),
color: Color.fromRGBO(42, 37, 82, 0.15),
border: Border.all(width: 5, color: Variables.sideBarColorDark)
);
The problem is image is floating out of the box as:
How do I hide the overflow of the image?


