-
-
Notifications
You must be signed in to change notification settings - Fork 22
Custom Icons
Fareez Iqmal edited this page Feb 25, 2023
·
2 revisions
Steps to convert SVG assets to IconData font assets.
We will be using FlutterIcon - Flutter custom icons generator. But, if we directly upload the svg file to it, the icon glyphs may not displayed correctly, eg very small icon in weird position. Thus, we need to fix it first.
- Open svg file in Inkscape.
- (Optional) Select all (Ctrl + A) to made the icon more visible.
- Go to Object > Ungroup
- Go to Path > Break Apart.
- Select All (Ctrl + A), and go to Path > Union.
- Go to Path > Combine
- Go to File > Open Document Properties
- In the Scale section, set the
Scale X
to be1.00000
- In the Custom Size section, expand the
Resize page to content...
option. - Then, click the button
Resize page to drawing or selection
. - (Maybe optional) Click on File > Clean up document...
- Finally, save the file as Plain SVG.
- Go to FlutterIcon.
- Drag and drop the svg file we have saved from Inkscape.
- Rename class
- Click on Download
- Add to project and ready to be used