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.3k stars 203 forks source link

Background image not working #624

Closed googlina closed 7 months ago

googlina commented 7 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

Backgound_image is not working . I have checked both in android 11 and 12

Configuration

flutter_native_splash:
  # color: "#b96bdb"
  background_image: "assets/images/splash.png"
  image : "assets/images/brand.png"

  android_12:
    image: "assets/images/splash.png"
    branding : assets/images/brand.png
    color: "#b96bdb"
    background_image: "assets/images/splash.png"

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 If applicable, add screenshots to help explain your problem. If in doubt, attach a screenshot.

Additional context Add any other context about the problem here.

jonbhanson commented 7 months ago

There is not a background_image property in the Android 12+ configuration because background images are not supported on Android 12+.

googlina commented 7 months ago

Thank you so much your reply. I appreciate your work for community.