skip to Main Content

A very exciting question. How to add an ICON, just an icon, and not a picture, to the application. What I mean is that I have a class in which I specify the Icon. When adding this class, some icons are in the flutter, and some are not. How can I add them?

code

There is no such icon in the flutter

Icon pictures

I tried to connect different libraries in pub.dev (I would like without third-party applications) and also changed icon to images

2

Answers


  1. You can use the service of the website Flutter icons : https://www.fluttericon.com/

    Just create your icon font, download the package and use it in your code!

    Login or Signup to reply.
  2. you could use imageIcon: https://api.flutter.dev/flutter/widgets/ImageIcon-class.html

    it takes an icon that comes from an ImageProvider, e.g. an AssetImage.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search