Change Android Launcher Icon¶
To change the launcher icon for your Android app, you need to generate a set of icons and replace the default ones in your Flutter project.
1. Generate Launcher Icons¶
- You can use an online tool like the Android Asset Studio to generate launcher icons for different screen densities.
- Upload your source image (e.g., a 512x512 PNG file).
- Customize the icon shape, color, and effects as needed.
- Download the generated zip file.
2. Replace Icon Files¶
- Extract the downloaded zip file. You will find a
res
folder inside. - Open your Flutter project in your code editor.
- Navigate to the
android/app/src/main/
directory. - Replace the existing
res
folder with the one you extracted from the zip file. This will overwrite the defaultmipmap
directories with your new icons.
3. Verify the Changes¶
- After replacing the files, rebuild your app.
- Install the app on an Android device or emulator to see the new launcher icon.
(Please note that the file paths in your project may be slightly different. The image below shows an example of what to look for.)