Saturday, June 8, 2019

How to change project name in flutter


Solution for Android -

This is very simple in flutter, If you want to change the project name which will display on the mobile app. First, open your project in android studio or in any editor and then navigate to android/app/src/main/AndroidManifest.xml 



After this, you have to change the label value in AndroidManifest.xml  for android:label 

<application
    android:name="io.flutter.app.FlutterApplication"
    android:label=“APP Name”
    android:icon="@mipmap/ic_launcher">


Just replace “APP Name” with your app name. Now run your project in android simulator/device. 
Note - If changes are not updating then please uninstall your existing build and install again.



Solution for iOS - To update app name in iOS you just need to navigate on below location - 

ios/Runner/Info.plist



Now search for “CFBundleName” in Info.plist file and replace its value with your app name. Please check below example - 

<key>CFBundleName</key>
<string>APP Name</string>

Now, Run the app in simulator/Device. This will update your app name.

Note - Same as Android if the app name is not updating then please uninstall your existing build and install again.


This will update the app name for both (Android and iOS). 

3 comments:

  1. Thanks for sharing this helpful guide! Changing the project name in Flutter seems pretty straightforward with your step-by-step instructions. It's great to know that we can easily update the app name for both Android and iOS platforms by making simple edits in the AndroidManifest.xml and Info.plist files respectively. Your clear explanation makes it easy for anyone to follow along. Appreciate the tips about uninstalling the existing build if the changes don't reflect immediately.

    ReplyDelete
  2. On a related note, if you’re looking to capture and share your app’s functionality or any other screen activity,iPhone screen recording: a step-by-step guide is an excellent resource. Whether you’re a developer showcasing your work or a user creating tutorials, this guide will walk you through the process of screen recording on your iPhone with ease. Combining development skills with practical tools like this can significantly enhance your productivity and communication.

    ReplyDelete
  3. Thank you for the advice on how to remove the current build if the modifications don't take effect right away. At Xposure, we value such practical insights and strive to provide developers with the tools and knowledge they need to streamline their workflows. With Xposure, you can stay ahead in the ever-evolving world of app development.

    ReplyDelete