How to change the app display name build with flutter?

后端 未结 11 543
轻奢々
轻奢々 2020-12-12 12:08

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 ?

I have tried ch

11条回答
  •  攒了一身酷
    2020-12-12 12:37

    As of 2019/12/21, you need to change the name: [NameOfYourApp] in pubspec.yaml. Then go to Edit > Find > Replace in Path, and replace all occurrences of your previous name.

    Also, just for good measure, change the folder names in your android directory, e.g. android > app > src > main > java > com > example > yourappname.

    Then in the console, in your app's root directory, run

    flutter clean
    

提交回复
热议问题