Flutter image BoxFit cheatsheet
This post hasn't been updated for 4 years
Tổng hợp flutter image BoxFit để các bạn dễ hình dung và chọn lựa trong quá trình dev flutter.
Image.network(
'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/nature-quotes-1557340276.jpg?crop=1.00xw:0.757xh;0,0.0958xh&resize=1200:*',
fit: BoxFit.contain,
),
Tài liệu: https://api.flutter.dev/flutter/painting/BoxFit-class.html
All Rights Reserved