skip to Main Content

Please explain me how to achieve such fixed design as you can see on the screenshot below:
enter image description here

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

Answers


  1. Chosen as BEST ANSWER

    Fortunately I found a solution here. You just need to select only iphone mode in devices dropdown in Xcode.


  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search