I am trying to understand how the Flutter layout system works.
I read in the docs that, on Flutter, "constraints go down and sizes go up", meaning, the parent tells the child what its sizes contraints are, and the child tells the parent their chozen size.
And then I read the definition of the Expanded widget:
A widget that expands a child of a Row, Column, or Flex so that the child fills the available space.
Question: Doesn't Expanded break the above rule? My understanding is that a parent shouldn't tell its children its size, and that's what Expanded is doing. Also, without the Expanded, the children would already know its constraints and they could be 100% width and height if they wanted.
What am I getting wrong?