FittedBox 내의 컨텐츠를 FittedBox 부모 사이즈에 맞출 때 사용
class FittedBoxExample extends StatelessWidget {
const FittedBoxExample({super.key});
Widget build(BuildContext context) {
return Container(
height: 400,
width: 300,
color: Colors.blue,
child: const FittedBox(
// TRY THIS: Try changing the fit types to see how they change the way
// the placeholder fits into the container.
fit: BoxFit.fitWidth,
child: Placeholder(),
),
);
}
}