Row xếp widget theo chiều ngang; Column xếp theo chiều dọc.
- Mặc định chúng chiếm không gian tối thiểu.
Expandedbuộc con lấp đầy không gian còn lại đều nhau.Flexiblecho phép con chiếm thêm không gian nhưng có thể nhỏ hơn nếu cần. - Dùng
MainAxisAlignmentvàCrossAxisAlignmentđể kiểm soát khoảng cách và căn chỉnh.
Row lays widgets horizontally; Column vertically.
- By default, they take minimum space.
Expandedforces children to fill remaining space equally.Flexibleallows children to take extra space but can be smaller if needed. - Use
MainAxisAlignmentandCrossAxisAlignmentfor spacing and alignment.