Viewboxis a decorator control which scales its child. It can be used to scale its child to fit the available space.
Viewboxgives 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
StretchDirectionwhich can prevent up or down scaling.