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

the splash screen doesn't show in android devices below android 12 but in android 12 it's work fine #682

Closed maysam-ite closed 4 months ago

maysam-ite commented 8 months ago

Attention: If you open a bug report without sufficient details, it will be closed. Is your question related to Android 12? Please check the notes on Android 12 first (https://pub.dev/packages/flutter_native_splash#android-12-support).

Describe the bug

the splash screen doesn't show in android devices below android 12 but in android 12 it's work fine

Configuration flutter_native_splash: ^2.2.8

flutter_native_splash:
  android: true
  ios: true
  image: "assets/images/newsplash.png"
  color: "#6E429A"
  android_12:
    image: "assets/images/newsplash.png"
    color: "#6E429A"

Device (please complete the following information):

To Reproduce Steps to reproduce the behavior, using the example app:

  1. Set the config on the example app to '...'
  2. Run in an emulator configured with '...'
  3. See error

Screenshots photo_2024-03-26_03-28-54

If applicable, add screenshots to help explain your problem. If in doubt, attach a screenshot.

Additional context the image doesn't show only the background color

jonbhanson commented 7 months ago

When I applied your configuration to the example app, the splash appear on Android 11. Please include a minimal copy of your app source the reproduces the problem.

mamadgm commented 5 months ago

@maysam-ite just wanted to say thanks , my splash was not showing in HYPEROS and your setting for android 12 worked for me , i was stupid not to look for android 12 settings and i think it is Necessary HyperOS to Include "Android 12"

flutter_native_splash:
  android: true
  ios: true
  image: "ass/logo.png"
  color: "#6E429A"
  android_12:
    image: "ass/logo.png"
    color: "#6E429A"
cheers!
jonbhanson commented 4 months ago

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