Add Custom Icon In Flutter. I would like to add the icon in the search bar. So grab your phone, take a picture, download it to your laptop/desktop, create an assets folder (same level as lib folder) and save the image as image.jpg.
Click on the ‘+’ icon on the bottom to create a new animation and name it “add_cart”. It is part of the maki icons used in mapbox. However, you can also use your own icons.
True in your project's pubspec.yaml file in the flutter section.
In the old days of flutter development, you had to jump through hoops, write a lot of totally repetitive code, and add all the custom icons manually. Browse), however i would like to use an image as an icon. Identifiers for the supported material design icons. Each entry in this list should have a “family” key with the font family name, and a “fonts” key with a list giving the asset and other descriptors for the font.