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

Android 12 use image as branding if branding is not specified #399

Closed
tonypottera24 opened this issue Jul 25, 2022 · 3 comments
Closed

Android 12 use image as branding if branding is not specified #399

tonypottera24 opened this issue Jul 25, 2022 · 3 comments

Comments

@tonypottera24
Copy link

flutter_native_splash: ^2.2.3+1

To Reproduce

flutter_native_splash:
  color: "#ffffff"
  image: "assets/img/logo/logo.png"
  android_12:
    image: "assets/img/logo/android_splash.png"
    icon_background_color: "#FFFFFF"
  flutter pub run flutter_native_splash:create

Expected behavior
No branding when branding image is not specified

Screenshots
Screenshot_1658727129

Device (please complete the following information):

  • Device: Android simulator
  • OS: API 31
@tonypottera24
Copy link
Author

tonypottera24 commented Jul 25, 2022

Given the fact that the image in the branding position is squeezed
I've got another question.
If I want to add a branding image, what is the recommended image size?

@tonypottera24 tonypottera24 changed the title Android 12 splash screen use image as branding Android 12 splash screen use image as branding if branding is not specified Jul 25, 2022
@tonypottera24 tonypottera24 changed the title Android 12 splash screen use image as branding if branding is not specified Android 12 use image as branding if branding is not specified Jul 25, 2022
@OutdatedGuy
Copy link
Contributor

OutdatedGuy commented Jul 31, 2022

Here's an article for android12 splash screen specifications.

Basically it specifies:

It should be within 200dp width and 80dp height.
Avoid using png, jpeg or webp. Use SVG or Drawable XML. Using png may result in loss of quality when the image is scaled.
It should be in a rectangular aspect ratio. Squares and circles are likely to be cut off.

@jonbhanson
Copy link
Owner

I will push out an update soon that will fix the branding appearing when it was not specified.

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

3 participants