Viewbox
is a decorator control which scales its child. It can be used to scale its child to fit the available space.Viewbox
gives its child infinite space in the measure phase. It will constrain either or both sides when arranging it. This depends on the value of the Stretch
.StretchDirection
which can prevent up or down scaling.Stretch
Uniform
UniformToFill
Fill
None
StretchDirection
Both
UpOnly
DownOnly