Search code examples
iosxmlipadflutterflutter-layout

flutter app not taking full width of ipad screen?


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


Solution

  • You need to register your app Universal

    Go to Runner > Target > Deployment info

    enter image description here

    enter image description here