you can use this plugin flutter_screenutil . It is a flutter plugin for adapting screen and font size. Let your UI display a reasonable layout on different screen sizes! setHeight method is mainly adapted in height, you want to control the height and actuality of a screen on the UIUsed when the same is displayed.
Read moreAre flutter app responsive?
Creating a responsive Flutter app. Flutter allows you to create apps that self-adapt to the device’s screen size and orientation . There are two basic approaches to creating Flutter apps with responsive design: Use the LayoutBuilder class.
Read moreHow can I make my mobile app responsive?
5 Responsive App Design Best Practices to Conquer the 24,000+ Different Screen Sizes Out There
Read moreHow do you change the screen size on Flutter?
How To get Flutter screen size
Read moreHow do I know what size my flutter is?
How to open Dev Tools in android studio.
Read moreWhat is flutter size?
Size(double width, double height) Creates a Size with the given width and height . const. Size.copy(Size source) Creates an instance of Size that has the same values as another.
Read more