Flutter Layout — Complete Guide

1. The Core Mental Model

Flutter layout runs on one rule, repeated at every level of the widget tree:

Constraints go down. Sizes go up. Position is set by the parent.

A parent passes constraints (min/max width, min/max height) down to its child.