gpt4 book ai didi

ios - 如何为 Flutter 应用程序创建 iOS LaunchScreen.storyboard?

转载 作者:IT王子 更新时间:2023-10-29 06:54:59 27 4
gpt4 key购买 nike

我正准备发布一个用 flutter 创建的 iOS 应用程序,需要创建一个启动屏幕。为每个屏幕尺寸创建不同尺寸的 Assets 似乎很痛苦,推荐的 iOS 开发方法是使用看起来像应用程序第一个屏幕的 Storyboard。有没有办法在不尝试在 Xcode 中创建自己的 Storyboard的情况下用 flutter 做到这一点?否则,我将不得不尝试创建一个类似于我在 flutter 中创建的 Storyboard。

最佳答案

To add an image to the center of your “splash screen”, navigate to .../ios/Runner. In, Assets.xcassets/LaunchImage.imageset, drop in images named LaunchImage.png, LaunchImage@2x.png, LaunchImage@3x.png. If you use different filenames, you’ll also have to update the Contents.json file in the same directory.

You can also fully customize your launch screen storyboard in Xcode by opening .../ios/Runner.xcworkspace. Navigate to Runner/Runner in the Project Navigator and drop in images by opening Assets.xcassets or do any customization using the Interface Builder in LaunchScreen.storyboard.

结帐:https://flutter.io/assets-and-images/#updating-the-launch-screen

关于ios - 如何为 Flutter 应用程序创建 iOS LaunchScreen.storyboard?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51777125/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com