How to change the app display name build with flutter?

后端 未结 11 566
轻奢々
轻奢々 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:16

    There is a plugin.

    https://pub.dev/packages/flutter_launcher_name

    Write pubspec.yaml

    dev_dependencies: 
      flutter_launcher_name: "^0.0.1"
    
    flutter_launcher_name:
      name: "yourNewAppLauncherName"
    

    and run

    flutter pub get
    flutter pub run flutter_launcher_name:main
    

    You can get the same result as editing AndroidManifes.xml and Info.plist.

提交回复
热议问题