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

147 views Asked by At

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.

2

There are 2 answers

2
Guillermo On

Hello did you try using MediaQuery class?

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

Hope it helps you out.

0
Mou Biswas On

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.