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

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

Open maysam-ite opened 1 month ago

maysam-ite commented 1 month 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 1 month 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.