flutter app not taking full width of ipad screen?
Asked Answered
B

3

10

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

Brabble answered 22/8, 2019 at 9:50 Comment(6)
Your screenshot isn't visible.Preoccupy
fixed now......Brabble
Still it's difficult to understand. Can you take with a picture with your camera if you are using physical iPad?Preoccupy
Did you use the default counting app? If so, you could report an issue to flutter, I think It's a bug. But there is an issue marked as solved, so you should take a look.Denominationalism
there is not any solution provided in such issue!Brabble
You app isnt configured for iOS as universal, its iphone only, so on iPad it simulates an iphone size.Ervinervine
P
7

You need to register your app Universal

Go to Runner > Target > Deployment info

enter image description here

enter image description here

Preoccupy answered 22/8, 2019 at 11:44 Comment(0)
S
14

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

Syringa answered 13/7, 2021 at 8:46 Comment(0)
P
7

You need to register your app Universal

Go to Runner > Target > Deployment info

enter image description here

enter image description here

Preoccupy answered 22/8, 2019 at 11:44 Comment(0)
S
1

For Xcode v15.0+

You need to do change the Targeted devices famillies by Iphone, iPad.

  1. Open your ios folder with Xcode
  2. Click on Runner in the left-hand side menu
  3. Click on Runner in TARGETS
  4. Build Settings => Deployment => Targeted devices famillies

enter image description here

Sarcomatosis answered 27/10, 2023 at 16:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.