I'm creating an app for both desktops and mobile devices. The application has a screen with positioned icons. When a desktop application's window resizes, the icon (and UI) positions are broken on smaller windows. If I return to this screen from the home screen, however, the second screen adapts and the buttons are positioned appropriately. Is it possible to refresh the screen when resizing it? Every resizing requires a screen refresh? So it doesn't appear to be broken. What are the possibilities for resolving this issue?
Asked
Active
Viewed 1,013 times
0
-
Hi, See this https://stackoverflow.com/questions/61799870/how-to-resize-flutter-widgets-depending-on-screen-size – Reza M May 24 '22 at 12:16
-
@RezaM the second screen is already inside the `LayoutBuilder`. But it doesn't solve this issue – Febin Johnson May 24 '22 at 12:26
-
If the 2nd screen is inside the `LayoutBuilder` every time screen size is changed, it rebuilds the widget. so you should consider the new size constraint to design your app. However, i recommend use a https://pub.dev/packages/flutter_screenutil. you can design responsive desgin. Also you can user `OrientationBuilder` alongside with `ScreenUtil`. This is very convenient and useful way. – Reza M May 24 '22 at 13:02
-
If I know what do you want exactly, I can provide an example. Do you want a responsive design? – Reza M May 24 '22 at 13:04
-
the entire application is responsive but it's this particular screen that causes layout issues – Febin Johnson May 24 '22 at 13:09
-
1@FebinJohnson you really just need to post an extract of your code so that people can easily tell you what you have done wrong – mister_cool_beans May 24 '22 at 13:59