android – 如何使用flutter更改应用程序显示名称构建?

前端之家收集整理的这篇文章主要介绍了android – 如何使用flutter更改应用程序显示名称构建?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用flutter create testapp创建了应用程序.
现在,我想将App名称从“testapp”更改为“My Trips Tracker”.我怎样才能做到这一点 ?

我已经尝试从AndroidManifest.xml进行更改并且它已经改变了但是有没有一种方法可以实现这一点?

解决方法

Flutter文档指出了您可以在哪里更改Android和iOS应用程序的显示名称.这可能是您正在寻找的:

> Preparing an Android App for Release
> Preparing an iOS App for Release

对于Android

您似乎已经在AndroidManifest.xml中找到了这个作为应用程序条目.

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项目设置部分:

Navigate to your target’s settings in Xcode:

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

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相关文章