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.28k stars 200 forks source link

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

Open muhammadarslannasr opened 3 weeks ago

muhammadarslannasr commented 3 weeks 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 1 week ago

Yep on some android it always shows launcher icon

3kdeveloper commented 1 week ago

Yep on some android it always shows launcher icon

Run the native splash command after the launcher icon generation.

vasilich6107 commented 1 week ago

Thanks Very useful package

jonbhanson commented 5 days ago

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