小编Mar*_*afa的帖子

flutter 应用程序没有占用 ipad 屏幕的全宽?

iPad屏幕硬件

在 android 和 iPhone 上启动该应用程序运行良好,而在 iPad 上启动它时该应用程序出乎意料地没有占据屏幕的整个宽度!

尝试编辑Main.storyboard <view>宽度但没有任何反应

<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>
Run Code Online (Sandbox Code Playgroud)

ipad上的屏幕

xml ipad ios flutter flutter-layout

2
推荐指数
2
解决办法
836
查看次数

标签 统计

flutter ×1

flutter-layout ×1

ios ×1

ipad ×1

xml ×1