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,
),
),
Container(
height:200, width:20,
child:FittedBox(
child: Text('Some Example Text.'))
)
//In this example fitted box helps text to fit in the container even if it have
//to increase or scale the size of text(its child)...