change project name and package name
You change it in the manifest file. That is where you can change a whole bunch of settings about the android project itself.
How to change name of project in Android Studio
Try changing the contents of this file: C:\Path\To\Project\.idea\.name
Changing the project name
That depends on what you are trying to achieve. If you want to change the name of the app which is displayed in the mobile phones menu together with the app icon, you have to change the android:label
in the android/app/src/main/AndroidManifest.xml
(Code Sample 1) and the CFBundleName
in the ios/Runner/Info.plist
(Code Sample 2).
Last time I did this it took me ages to find out, why the name of the app was not changed in the list of currently running apps on Android. For that you also need to change the title of your MaterialApp (Code Sample 3).
For renaming it everywhere I would suggest to use search and replace in the project. If you do this, you have to choose a name without spaces or special characters. A project name 'new project' in the pubspec.yaml
for example will break the build.
Code Sample 1:
<application
android:name="io.flutter.app.FlutterApplication"
android:label="New Name"
android:icon="@mipmap/ic_launcher">
Code Sample 2:
<key>CFBundleName</key>
<string>New Name</string>
Code Sample 3:
return new MaterialApp(
title: 'New Name'
...);
Related Topics
Usage of Forcelayout(), Requestlayout() and Invalidate()
Custom Filtering in Android Using Arrayadapter
In Android, How to Set Margins in Dp Programmatically
Programmatically Scroll to a Specific Position in an Android Listview
How to Set Different Label for Launcher Rather Than Activity Title
Cannot Get Searchview in Actionbar to Work
Reverse Engineering from an APK File to a Project
What Are Advantages of Setting Largeheap to True
How to Escape Special Characters Like ' in SQLite in Android
How to Draw an Overlay on a Surfaceview Used by Camera on Android
Dynamically Add and Remove View to Viewpager
How to Configure a Static Ip Address, Netmask, Gateway Programmatically on Android 3.X or 4.X
No Matching Client Found for Package Name (Google Analytics) - Multiple Productflavors & Buildtypes
Data Binding Class Not Generated
What to Use Instead of "Addpreferencesfromresource" in a Preferenceactivity
How to Switch Activity Without Animation in Android
How Did Google Manage to Do This? Slide Actionbar in Android Application