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

Android 12: dark mode colors not respected when setting to a light color #730

Closed Jatoxo closed 2 months ago

Jatoxo commented 2 months ago

Describe the bug

When you set color_dark: "#ffffff" or icon_background_color_dark: "#ffffff" to always have a white splash screen, the option is not respected and a generic dark color is used instead.

Configuration

flutter_native_splash:
  color: "#ff0000"
  color_dark: "#ff0000"

  image: "assets/mm_logo.png"
  #image_dark: assets/splash-invert.png

  ios: false
  web: false
  android_12:
    image: "assets/logo_splash.png"
    # Splash screen background color.
    color: "#ffffff"
    color_dark: "#ffffff"

    icon_background_color_dark: "#ff0000"

Device (please complete the following information):

jonbhanson commented 2 months ago

This is a problem with miui. If you search the tickets, you will see that miui does not adhere to Android's splash API. For example, see this ticket.