Explain 'constraints go down, sizes go up, parent sets position.'
Tests Flutter layout protocol and unbounded width errors. Strong answers trace how a child gets infinite width from a scrolling parent and fix it with a bounded wrapper. Red flag: blaming the child without tracing parent constraints.
Tests your understanding of Flutter's two-pass layout protocol and how unbounded constraints propagate through the tree. A strong answer defines the rule: parents pass constraints down, children return intrinsic sizes up, and parents set final positions. It then traces an unbounded width error, such as a Column inside a horizontal ListView receiving infinite width, and fixes it with a bounded wrapper like SizedBox or ConstrainedBox.
Read the original → docs.flutter.dev
- #flutter
- #layout
- #constraints
- #interview
- #widgets
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.