Dan Tech Academy
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.

Nội dung bài học
  1. 01Flutter Layout Rule
  2. 02Unbounded Constraints
  3. 03Bộ Công Cụ, Theo Đúng Câu Hỏi Nó Trả Lời
  4. 04Cách Repo Bắt Lỗi Overflow
  5. 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
Đăng nhập