Open LeoAndo opened 2 years ago
https://pub.dev/packages/flutter_screenutil を使うと、画面サイズが異なってもUIが崩れないレスポンシブ対応が可能!
サンプル https://github.com/OpenFlutter/flutter_screenutil/tree/master/example
主なウィジェット: SizeBox, Flexible, ConstrainedBox, MediaQuery, LayoutBuilder, Spacer
SizeBoxは高さと横幅をpx単位で指定できる便利なウィジェットで、余白を開ける時などに使う。
小さなデバイス: iPhone SE 標準: iPhone12 Pro Max Tablet: iPad 12.9 inch
https://pub.dev/packages/flutter_screenutil を使うと、画面サイズが異なってもUIが崩れないレスポンシブ対応が可能!