~/talk

Multi-Child Algorithm Deep Dive

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, frontend-architecture]
github:sstoll
slides:none on file

Breaks down the actual Flutter flex layout rules into the six-step multi-child layout algorithm, showing how unflexed children are measured first, leftover space is divided by flex factors, and flex-fit controls whether reserved space is forced. Explains mainAxisSize max vs min and cross-axis extent behavior, and runs a concrete example: a 900-high column with a 300 fixed child plus an expanded and a flexible child where 600 is reserved, expanded consumes its 300 reserved but the flexible only uses 150. Highlights surprising result that flexes reserve space but may not occupy it and that flex fit tight vs loose is the single difference between Expanded and Flexible.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Flex terminology explained
  3. 3:52Magic smoke in layout
  4. 4:34Six-step multi-child layout
  5. 9:11Tight vs loose constraints
  6. 12:02Cross-axis extent in flex
  7. 13:27Main axis extent in flex
  8. 16:01Flex layout example
  9. 18:52Final positioning step
  10. 21:50Cross-axis alignment edge cases
  11. 23:37Flex tongue twister revisited
  12. 25:02Help and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.