Flutter FittedBox
Container(
height: 200,
width: 200,
color: Colors.red,
child: FittedBox(
alignment: Alignment.center,
clipBehavior: Clip.none,
child: Image.network('https://flutter.github.io/assets-for-api-docs/assets/widgets/owl-2.jpg'),
fit: BoxFit.fill,
),
),
Sore Serval