ScerIO / icon_font_generator

☣️ Flutter Icon Font Generator
https://pub.dev/packages/icon_font_generator
Other
96 stars 50 forks source link

Icon is showed at wrong position #15

Open bigbang489 opened 2 years ago

bigbang489 commented 2 years ago

No matter how I changed the position of the objects in SVG file, it keeps showing the icon in wrong position

Screen Shot 2021-09-21 at 09 01 34 Screen Shot 2021-09-21 at 08 56 03
prateekmedia commented 2 years ago

Increase the size of your svg

bigbang489 commented 2 years ago

What is the minimal size or recommendation size for svg?

SergeShkurko commented 2 years ago

What is the minimal size or recommendation size for svg?

there is no such size, it's vector graphics the most important thing is that all icons are of the same size. For example, focus on 512

Also please attach you svg from https://github.com/rbcprolabs/icon_font_generator/issues/15 for test here

bigbang489 commented 2 years ago

Here is my SVG

bill_paid.svg.zip

easazade commented 2 years ago

for me all icons in generated icons font are not centered at all. and all are exactly 2 pixel lower than to where they need to be to look vertically centered. I have to use this code to make them look centered

Transform.translate(
  offset: const Offset(0, -2),
  child: Icon(
    icon,
    color: defaultK.color(label: 'color', initial: Colors.black),
   ),
),