jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.36k stars 215 forks source link

Getting strange issue on android 12 showing android app main icon and on 13 showing correct rounded border image #695

Closed muhammadarslannasr closed 6 months ago

muhammadarslannasr commented 7 months ago

Getting strange issue on android 12 showing android app main icon and on 13 showing correct rounded border image.

My App contain two images one Square image for App Main icon on android and another with rounded corners for launcher icon.

but when tested it shows rounded corners image on native splash on android 13 and 14 but when check on android 12 shows square image which seems getting from App main icon.

how to fix this or this is default behaviour?

flutter_launcher_icons:
    android: "launcher_icon"
    ios: true
    image_path: "assets/png/app_icon.png"
    min_sdk_android: 21

flutter_native_splash:
  color: "#ffffff"
  android_12:
     image: "assets/png/native_splash.png"
  android: true
  ios: false
vasilich6107 commented 6 months ago

Yep on some android it always shows launcher icon

3kdeveloper commented 6 months ago

Yep on some android it always shows launcher icon

Run the native splash command after the launcher icon generation.

vasilich6107 commented 6 months ago

Thanks Very useful package

jonbhanson commented 6 months ago

@muhammadarslannasr was @3kdeveloper's suggestion helpful for you? If not, can you post a minimal version of your project that reproduces the problem?

jonbhanson commented 6 months ago

Closed due to inactivity. Feel free to reopen if you are still having trouble.