I'm having a hard time understanding the following example from the official Flutter docs:
Following the famous "Constraints go down. Sizes go up. Parent sets position" rule and assuming the screen size is 1024x800 shouldn't the conversation between the widgets look like this:
Parent: "You must be from
0to1024pixels wide and0to800pixels tall".Child (the red container): "Ok. I want to be
100pixels wide and100pixels tall".
According to the docs, however, the parent is forcing the child to occupy the entire screen.
So why does it do this instead of letting the child be 100x100?

as per my knowledge, when we are talk about constrains, there are 2 mandatory fields.
and also its has mentioned on documentation. there are some limitations
in Example 2, as you mentioned, the container only has Size , but doesn't know where it is on the screen. that's why the Container fills the screen.
by adding
Aligmentwill set the position of the container. thats why in example 3 , when its wraped withCenterthe size = 100x100because now the container has 2 mandatory fields:
Alignment.center)