flutter app not taking full width of ipad screen?

1,150

Solution 1

You need to register your app Universal

Go to Runner > Target > Deployment info

enter image description here

enter image description here

Solution 2

In the newest XCode version it's not the same anymore as an accepted answer, now you can do it like this.

  1. Go to Runner/BuildSettings and find Deployment enter image description here

  2. Click on the iPhone next to Targeted Device Families and then on other enter image description here

  3. In the box add 2 and press enter enter image description here

And that's it. It will look like this now: enter image description here

Share:
1,150
Marwan Mostafa
Author by

Marwan Mostafa

Updated on December 13, 2022

Comments

  • Marwan Mostafa
    Marwan Mostafa over 1 year

    iPad screen hardware

    launching the app on android and iPhones works well while launching it on iPad the app unexpectedly is not taking the full width of the screen!

    tried editing the Main.storyboard <view> width but nothing occurs

    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
        <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
    </view>
    

    Screen on ipad