Please explain me how to achieve such fixed design as you can see on the screenshot below:
I mean that I need to display applications on the iPad in landscape or portrait mode as if it were running on a mobile device.
2
Fortunately I found a solution here. You just need to select only iphone mode in devices dropdown in Xcode.
iphone
devices
For system orientation, in Flutter you can lock how the app is presented with this code:
SystemChrome.setPreferredOrientations( [DeviceOrientation.portraitUp] );
For the UX, I recommend you use space dividers, to make sure the app has a consistent look between all devices, even if their aspect ratio is slightly different.
Click here to cancel reply.
2
Answers
Fortunately I found a solution here. You just need to select only
iphone
mode indevices
dropdown in Xcode.For system orientation, in Flutter you can lock how the app is presented with this code:
For the UX, I recommend you use space dividers, to make sure the app has a consistent look between all devices, even if their aspect ratio is slightly different.