Add helper function to strut empty boxes.
Consolidate tree types into one.
Add required textDirection to TextOptions.
Use ResolvedBox when flattening trees.