fitプロパティに応じて、子をそれ自体の中でスケーリングおよび配置します。
Most Flutter widgets are boxes.
ほとんどのFlutterウィジェットはボックスです
You can lay them out, stack them, even nest them inside each other.
それらを配置することもできますし、重ね合わせる(Stack)こともできますし、ネストさせることもできます。
But what happens when that one box doesn’t fit in the other?
しかし、その1つのボックスが他のボックスに収まらない場合はどうなりますか?
To help with that, there’s FittedBox.
FittedBoxがあります!
Just give it a child widget and a BoxFit that describes how it should make its child fit,
子ウィジェットと、子をどのようにフィットさせるかを説明するBoxFitを指定するだけです。
and it will scale or clip its child automatically.
そうすれば、子ウィジェットを自動的にスケーリングまたはクリップします。
The BoxFit enum offers a bunch of different fit types,
like fitWidth, fill, and even none.
BoxFit列挙型は、さまざまなフィットタイプを提供します。
fitWidth、fill、さらにはnoneのように。
There is also an alignment property that tells FittedBox how to align the child if there’s extra space.
余分なスペースがある場合に子を配置する方法をFittedBoxに指示するalignmentプロパティもあります。
参考
https://api.flutter.dev/flutter/widgets/FittedBox-class.html