To size a Container that resides inside another Container, you need to set the alignment property of the parent Container . Otherwise, the child Container won’t care about the width and height you set for it and will expand to its parent’s constraints.
Read more