1

Could someone kindly tell me how I could remove the underscore from my app name.

When I use a simulator, or a real phone (iPhone or android), the name in the screen appears as "my_app_name" - which looks odd.

I tried to change the name in the .yaml file - but it won't allow a space in the name.

name: my_app_name

That cannot be changed. It won't accept spaces.

What is the way around this?

Thanks

houba
  • 496
  • 7
  • 20
  • You mean on the top of your app screen or below the launcher icon? – George Nov 05 '19 at 21:51
  • Does this answer your question? [How to change the app display name build with flutter?](https://stackoverflow.com/questions/49353199/how-to-change-the-app-display-name-build-with-flutter) – Ike Mawira Nov 06 '19 at 00:29

2 Answers2

8

For Android:

Go to: android\src\main\AndroidManifest.xml and change:

android:label="my_app_name"

to

android:label="My App Name"

For IOS:

Go to: ios\Runner\info.plist and change:

<string>my_app_name</string>

to

<string>My App Name</string>
  • 1
    Small note on the above you might find you have to run `flutter clean` before trying `flutter run` again – eggsy84 Nov 24 '19 at 09:46
0

In Android go to manifest file and find:

lable: your desired name

In iOS/Runner/Info.plist

<key>CFBundleName</key>
<string>yourAppName</string>
Amir Ali Aghamali
  • 582
  • 1
  • 7
  • 23
  • Now that's interesting. Because I went there and I changed the name, yet it now prints my app out as myNameApp - so it is better, but still doesn't work – houba Nov 05 '19 at 20:45