问题描述
我已经使用Flutter create testapp创建了应用程序.现在,我想将应用程序名称从"testapp"更改为到我的行程跟踪器".我该怎么办?
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:
对于Android
似乎您已经在 AndroidManifest.xml
中找到它作为 application
条目.
It seems you have already found this in the AndroidManifest.xml
as the application
entry.
应用程序:在 application 标签中编辑 android:label ,以反映应用程序.
application: Edit the android:label in the application tag to reflect the final name of theapp.
对于iOS
请参见查看Xcode项目设置
部分:
在Xcode中,打开应用程序 ios 文件夹中的 Runner.xcworkspace .
In Xcode, open Runner.xcworkspace in your app’s ios folder.
显示名称:要在主屏幕上显示的应用的名称和其他地方.
Display Name: the name of the app to be displayed on the home screenand elsewhere.
这篇关于如何使用Flutter更改应用的显示名称构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!