DEV Community

Discussion on: Fwitter - Flutter Based Twitter Clone

Collapse
 
mahak20 profile image
Mahak20

I loved the app and wanted to modify it for my liking. But I can't seem to work on Icons. I wanted to ask about the AppIcon class in constant.dart, how do I assign those values if I want more icons to be used? (Like If I wanted to add mic icon)

Collapse
 
thealphamerc profile image
Sonu Sharma 💙

AppIcon class consist integer values of icons. These values are taken from icons.ttf font file available in assets/fonts folder. If you want to add new icon first of all you have to check if this icon is available in icon.ttf file or not.
Now the question is that how to check icon in icon.ttf file. There are so many website available which can show you all icons inside icon font file. For example open fontdrop.info/ website and drag and drop icon file into this and it will show you all available icons and their integer values. Use these integer values to add new icon in AppIcon class.

Collapse
 
mahak20 profile image
Mahak20

Thanks a lot! Appreciate it..