How to Add Custom icons in flutter

Savad mv
2 min readJul 1, 2020

--

Note this one . Lets try some custom icons

Let’s Go …

Get ready with custom SVG icons you have

Go to website https://www.fluttericon.com/

Drag your icons to this 👇 part of the website

You can name your custom icon here

Select those icons you need to generate from that

Press download button , you can find at the right end of the menu

Extract the download .zip file

Copy .dart file and paste it to lib directory in your project

Extracted folder

Add .ttf file to assets/font directory and update it in pubspec.yaml file in your project 👇

fonts:
- family: MyCustomIcon
fonts:
- asset: assets/fonts/MyCustomIcon.ttf

Run flutter pub get in your project terminal …

Now you can add your custom icon to your app

Like this

new Icon(MyCustomIcon.my_orders),

Happy coding …….

Hit the clap as many time as you want

Sign up to discover human stories that deepen your understanding of the world.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Savad mv
Savad mv

Written by Savad mv

Flutter developer | Mobile Application developer

No responses yet

Write a response