How to force fit a widget into a given slot

I have a Scale box and I’m dynamically trying to add widgets to it and want it to fit inside the parent container without clipping or overflowing

The widget I’m adding is using overlay as root and I want to be able to have the child widgets of it at even 2000px away and it resizes to fit all even if it looks really small

Try wrapping your ScaleBox with a SizeBox with a set width&height