📝Flutter layout model

Flutter layout model can be described with a simple rule: “Constraints go down. Sizes go up. Parent sets position.”

  1. Widget receives size constraints

  2. Widget decides on its own size (within constraints) and returns it

  3. Parent selects the position for the widget

See also:

Backlinks