Giter Club home page Giter Club logo

Comments (3)

CubE135 avatar CubE135 commented on July 18, 2024 3

Hey, i managed to figure out whats wrong here.
Android 8 and above use something called "adaptive icons".
Adaptive Icons means, that you split your icon into background and foreground. Android then places and shapes both images according to the devices settings.
As you can see above, i already used adaptive icons:

adaptive_icon_background: "assets/img/icon/ic_background.png"
adaptive_icon_foreground: "assets/img/icon/ic_foreground.png"

For some reason, when using adaptive icons, the foreground gets zoomed in.
So all i had to do, is make the foreground a little bit smaller.

So use adaptive icons with a smaller foreground then normal and use a complete icon for android 7 or less:

flutter_icons:
  android: true 
  ios: true
  image_path_android: "assets/img/icon/ic_launcher_xxxhdpi.png"
  image_path_ios: "assets/img/icon/ios.png"
  adaptive_icon_background: "assets/img/icon/ic_background.png"
  adaptive_icon_foreground: "assets/img/icon/ic_foreground.png"

from flutter_launcher_icons.

milodude avatar milodude commented on July 18, 2024

I was looking for an answer to my problem and found this question. Anybody else has the same issue? I have already tired with 32x32 and 64x64 pixels icons, but does not affect the final result, I'm still having the same zoom in effect.

from flutter_launcher_icons.

MarkOSullivan94 avatar MarkOSullivan94 commented on July 18, 2024

Great tip for when using adaptive icons! Thanks for sharing

from flutter_launcher_icons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.