HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
장지원 페이지/
DGroid
DGroid
/
플러터 앱개발
플러터 앱개발
/
반응형 어플리케이션 디자인s

반응형 어플리케이션 디자인s

URL
https://pub.dev/packages/flutter_screenutil/changelog
사람
flutter_screenutil | Flutter Package
Bug Fix: Some widgets disapear because of parent rebuild. Bug Fix: issue #362. Null check operator used on a null value when using ScreenUtil.init(). Re-add context to builder parameters (users request). Add some standard rebuild factors. -Breaking change. Use a new way to set font scaling -Deprecated ssp and nsp BREAKING CHANGES BuildContext is no more required while initializing.
flutter_screenutil | Flutter Package
https://pub.dev/packages/flutter_screenutil/changelog
flutter_screenutil | Flutter Package
main.dart에서 디바이스 크기 조절
main.dart에서 디바이스 크기 조절
notion image
designSize: Size(412, 892),
타겟 스크린 크기를 미리 정해두는 것.
사용
사용
double width = 180.w // 숫자 뒤에 *.w를 쓰면, designSize 기준 가로 길이가 된다. double height = 300.h // 숫자 뒤에 *.h를 쓰면, designSize 기준 세로 길이가 된다. double textSize = 18.sp // 숫자 뒤에 *.sp를 쓰면, designSize 기준 폰트 크기가 설정된다.