How to Change App Name and App Icon in Flutter

Flutter , Thu Jan 19 2023

    Steps to change app name in Android:

    • Navigate to the android>app> src>main and open the AndroidManifest.xml file.

    open-the-androidmanifest

    • Under the application tag, Find the android:label and replace its value with the new app name.

    change-app-name

    Steps to change app icon in Android:

    • Prepare icon 512x512 (px)
    • Create assets folder in project, copy icon to assets folder:

    create-folder-assets

    Open file pubspec.yaml

    Replace: 

    dev_dependencies:
    flutter_test:
    sdk: flutter

    To:

    dev_dependencies:
    flutter_test:
    sdk: flutter
    flutter_launcher_icons:
    git:
    url: https://github.com/Davenchy/flutter_launcher_icons.git
    ref: fixMinSdkParseFlutter2.8
    flutter_icons:
    android: "launcher_icon"
    ios: true
    image_path: "assets/icon.PNG"

    change-code-in-pubspec-file

    Open terminal, Run:

    • flutter pub get flutter
    • flutter pub run flutter_launcher_icons:main

    Run project, result:

    result-change-icon-app

    Video Demo and Source Code:

     

    Source Code