Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background image dark mode doesn't work for iOS #439

Closed
sysint64 opened this issue Oct 17, 2022 · 2 comments
Closed

Background image dark mode doesn't work for iOS #439

sysint64 opened this issue Oct 17, 2022 · 2 comments

Comments

@sysint64
Copy link

version: 2.2.11

flutter_native_splash:
  background_image_dark: "assets/splash/background_dark.png"
  background_image: "assets/splash/background.png"
  image: "assets/splash/logo.png"
  android: true
  ios: true
  web: false

There is a dark image, but it's not attached to dark mode

Screenshot 2022-10-17 at 14 14 41

Content.json:

{
  "images" : [
    {
      "filename" : "background.png",
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "author" : "xcode",
    "version" : 1
  }
}

Expected Contens.json:

{
  "images" : [
    {
      "filename" : "background.png",
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "appearances" : [
        {
          "appearance" : "luminosity",
          "value" : "dark"
        }
      ],
      "filename" : "darkbackground.png",
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "appearances" : [
        {
          "appearance" : "luminosity",
          "value" : "dark"
        }
      ],
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    },
    {
      "appearances" : [
        {
          "appearance" : "luminosity",
          "value" : "dark"
        }
      ],
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "author" : "xcode",
    "version" : 1
  }
}
@jonbhanson
Copy link
Owner

I tried running the package on the example and everything seemed to work fine. Can you advise how to reproduce this error?

@jonbhanson
Copy link
Owner

Closed due to inactivity. Feel free to reopen with instruction on how to reproduce if you are still having this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants