如何使用flutter更改应用的显示名称构建? [英] How to change the app display name build with flutter?

查看:135
本文介绍了如何使用flutter更改应用的显示名称构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用flutter create testapp创建了应用程序. 现在,我想将应用程序名称从"testapp"更改为"My Trips Tracker".我该怎么办?

I have created the app using flutter create testapp. Now, I want to change the App name from "testapp" to "My Trips Tracker". How can I do that ?

我尝试从AndroidManifest.xml更改,但更改了,但是flutter提供了一种方法吗?

I have tried changing from the AndroidManifest.xml and It got changed but is there a way that flutter provides to do that ?

推荐答案

更新:从评论中看,这个答案似乎已经过时了

UPDATE: From the comments this answer seems to be out of date

Flutter文档指出了可以在其中更改Android和iOS应用程序的显示名称的地方.这可能是您要寻找的:

The Flutter documentation points out where you can change the display name of your application for both Android and iOS. This may be what you are looking for:

  • Preparing an Android App for Release
  • Preparing an iOS App for Release

对于Android

看来您已经在AndroidManifest.xml中找到它作为application条目.

It seems you have already found this in the AndroidManifest.xml as the application entry.

查看位于以下位置的默认 App Manifest 文件 AndroidManifest.xml /android/app/src/main/并确认值正确, 特别是:

Review the default App Manifest file AndroidManifest.xml located in /android/app/src/main/ and verify the values are correct, especially:

应用程序:修改应用程序标签以反映最终名称 应用程序.

application: Edit the application tag to reflect the final name of the app.

对于iOS

请参见Review Xcode project settings部分:

在Xcode中导航到目标的设置:

Navigate to your target’s settings in Xcode:

在Xcode中,打开应用程序 ios 文件夹中的 Runner.xcworkspace .

In Xcode, open Runner.xcworkspace in your app’s ios folder.

要查看您的应用设置,请在Xcode项目中选择 Runner 项目 航海家.然后,在主视图侧栏中,选择 Runner 目标.

To view your app’s settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target.

选择常规标签.接下来,您将验证最重要的 设置:

Select the General tab. Next, you’ll verify the most important settings:

显示名称:要在主屏幕上显示的应用的名称 和其他地方.

Display Name: the name of the app to be displayed on the home screen and elsewhere.

这篇关于如何使用flutter更改应用的显示名称构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆