简体   繁体   中英

How to make flutter app UI responsive for different screen sizes [Flutter]?

I tried these packages Sizer/screenUtil for making responsive but its not doing the same as i want. Plz help me to get out from this.

Hello did you try using MediaQuery class?

https://api.flutter.dev/flutter/widgets/MediaQuery-class.html

Hope it helps you out.

You can add mainAxisAlignment: with the property such as mainAxisAlignment: MainAxisAlignment.spaceEvenly, or like mainAxisAlignment: MainAxisAlignment.spaceBetween, on the Row() or Column() you're using . it should be at least usable while the flutter packages like ScreenUtil() or Sizer() didnt work, and also Note: This plugin is still under development, and some APIs might not be available yet. this msg is written on the flutter.pub.get website so its better to use others while it isnt working properly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM