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

android12: in dark mode , background color dont response any changes #731

Closed Mohamad-Ammis closed 1 month ago

Mohamad-Ammis commented 2 months ago

on light mode everything work correcty but when i change to dark mode the splash background color dont accept any changes and still have the default color and dont change to pass color which is "#42a5f5" in my example

Configuration

flutter_native_splash:
  color: "#ffffff"
  #background_image: "assets/background.png"
  image: assets/images/android14.png
  color_dark: "#42a5f5"
  #background_image_dark: "assets/images/on_boarding.jpg"
  image_dark: assets/images/android14dark.png
  android_12:
    image: assets/images/android14.png
    color: "#ffffff"
    image_dark: assets/images/android14dark.png
    color_dark: "#42a5f5"
  android: true
  ios: true
  web: false
jonbhanson commented 1 month 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.