xxxxxxxxxx
Write file 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
xxxxxxxxxx
#Android
Open AndroidManifest.xml (located at android/app/src/main)
<application
android:label="App Name" > // Your app name here
#iOS
Open info.plist (located at ios/Runner)
<key>CFBundleName</key>
<string>App Name</string> // Your app name here
#Don't forget to run
$ flutter clean
xxxxxxxxxx
Android
Open AndroidManifest.xml (located at android/app/src/main)
<application
android:label="App Name" > // Your app name here
iOS
Open info.plist (located at ios/Runner)
<key>CFBundleDisplayName</key>
<string>App Name</string> // Your app name here
xxxxxxxxxx
You can easily do this with rename package,
It helps you to change your Flutter project's
AppName and BundleId for any platform you want.
To install the package run the following command:
flutter pub global activate rename
To rename the App, use the following command:
rename setAppName --targets ios,android,macos,windows,linux,web --value "Your App Name"
That's It!
xxxxxxxxxx
The Androidmanifest.xml can now be modified. Choose the
<application
android:name="io.flutter.app.FlutterApplication"
android:label="YourAppName"
android:icon="@mipmap/ic_launcher">
For Package Name
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name">