Sau bài này bạn sẽ
- Phát biểu Flutter layout rule và dùng nó để chẩn đoán lỗi kích thước
- Phân biệt tight, loose và unbounded constraints trong BoxConstraints
- Chọn đúng Expanded, AspectRatio, ConstrainedBox, FittedBox hoặc LayoutBuilder cho từng ràng buộc kích thước
Thời lượng8 phút
Độ khóBeginner
BoxConstraints, Expanded và LayoutBuilder
constraints go down, sizes go up, parent sets position; tight, loose và unbounded constraints; Expanded, AspectRatio, ConstrainedBox, FittedBox, LayoutBuilder, SafeArea.
- 01Flutter Layout Rule
- 02Unbounded Constraints
- 03Bộ Công Cụ, Theo Đúng Câu Hỏi Nó Trả Lời
- 04Cách Repo Bắt Lỗi Overflow
- 05Thuật Ngữ
Chủ đề: flutter-mobile-101, widgets, layout
Còn 5 phần trong bài nàyMở khóa toàn bộ Flutter Mobile 101Flutter Layout Rule, Unbounded Constraints, … — cùng 26 bài học của khóa, source code và checklist.
Mở khóa Flutter Mobile 101Thanh toán một lần — trọn đời — 7-day money-back. Đã mua? Đăng nhập