Загрузка...

Flutter launch icon empty on build

Hello everyone! I hope this video has helped solve your questions and issues. This video is shared because a solution has been found for the question/problem. I create videos for questions that have solutions. If you have any other issues, feel free to reach out to me on Instagram: https://www.instagram.com/ky.emrah

Below, you can find the text related to the question/problem. In the video, the question will be presented first, followed by the answers. If the video moves too fast, feel free to pause and review the answers. If you need more detailed information, you can find the necessary sources and links at the bottom of this description. I hope this video has been helpful, and even if it doesn't directly solve your problem, it will guide you to the source of the solution. I'd appreciate it if you like the video and subscribe to my channel!Flutter launch icon empty on build

I'm trying to add a launch icon to my Flutter app, for now I'm only concerned about Android. I've installed the flutter_launcher_icons package and tried a few different things, but the phone is only showing some default empty icon (a puzzle piece with a blue background on one phone, and just a black box on another). Here's the lines from my pubspec.yaml file:
dev_dependencies:
flutter_test:
sdk: flutter

flutter_launcher_icons: "^0.14.0"

flutter_launcher_icons:
android: "launcher_icon"
ios: false
image_path: "assets/icon/icon.png"
adaptive_icon_background: "#include remove_alpha_ios: true
min_sdk_android: 21

dev_dependencies:
flutter_test:
sdk: flutter

flutter_launcher_icons: "^0.14.0"

flutter_launcher_icons:
android: "launcher_icon"
ios: false
image_path: "assets/icon/icon.png"
adaptive_icon_background: "#include remove_alpha_ios: true
min_sdk_android: 21

The launcher_icon files are there in the android/app/src/main/res/ folders, and it's the correct image (though the background is not there, but I'm not sure if it handles that at a later time). The AndroidManifest.xml file has line android:icon="@mipmap/launcher_icon". I'm really not sure what's wrong here. The original image has dimensions 512x512.
android:icon="@mipmap/launcher_icon"
Tags: android,flutter,flutter-launcher-iconsSource of the question:
https://stackoverflow.com/questions/79018615

Question and source license information:
https://meta.stackexchange.com/help/licensing
https://stackoverflow.com/

Видео Flutter launch icon empty on build канала Emrah KAYA
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять