Flutter: Some of the material design icons are not supported - flutter

Seems like some of the material design icons are not supported. Like I want to use how_to_vote icon and it's actually listed in this page but it is not suppoted in Icons class. How can I use this and also why isn't it supported?

As of now, to use material design icons you have to add the package outline_material_icon in your pubspec.yaml. This will make available all the icons you want from this page

If you check the Icons class constants. There is no how_to_vote icon available. If you need to use that icon, download that from the material.io and add it to your app.

Related

How can I control the Stoke ( thikness ) of the icons

when we put an Icon Like this
Icon(
Icons.notifications_outlined,
)
we can control the size and color... of that icon, but I want to control the Stroke width of the Icon (not the size of the icon, I want to control the width of the icon's line )
is it possible by any widget or any other way in flutter SDK?
please don't recommend packages of other icons
thanks
I didn't find any way from the flutter SDK to control the icons thinkers, I tried using CustomPainter, BoxShadow()...
alternatively, I used a different icons package which is the Ionicons, which belongs to the Ionic framework, I found out that there is a flutter package for those icons, see Ionicons
you can see a list of all icons here, https://ionic.io/ionicons
and they can be used like this:
Icon(Ionicons.add)
Icon(Ionicons.add_outline)
Icon(Ionicons.add_sharp)

Flutter: Use specific material icons without the whole MaterialIcons-Regular.otf

I am building a Flutter web app. I use a handful of material icons, but it brings the whole MaterialIcons-Regular.otf file with it. It is of 1.6 MB and takes time to load.
Is there a way to only bring the icons I need?
I can only think of using the icons as SVGs and bringing them separately with flutter_svg package.

Some of material design icons are not defined flutter

Hey so I have this problem, I want to use some icons that are listed here but in my flutter it says the name isn't defined. I already tried to do flutter clean and the problem still exists (I need to use Icons.password and Icons.person_off). Do you have any idea how to fix it? Thanks in advance
Go on to the pubspec.yaml file and enable the material dependecies like
uses-material-design: true also if you still not found your icon then go to https://fonts.google.com/icons this page and search for your icon and after clicking on your icon it will show you the code for implementing that icon on web, android, flutter and IOS.

How to display all the icons in FontAwesome library in a ListView?

I want to show all the icons in the FontAwesome library in a ListView.
Is there any way I can get all the icons available in the library as a list?
Don't think there is better way but in the example directory of the package they have a list of all icons : List of all icons as Dart array

What is the Pin Icon called in Material Icons?

What is the name of this pin icon?
Now the exact icon is available in Material Icon.
Icon Name: push_pin
Icon Url: https://material.io/resources/icons/?search=push%20pin&icon=push_pin&style=baseline
Image:
Flutter's Icon class uses the icons from Material Design.
The only icons that would come close to the icon from the image you linked are the following:
place
pin_drop
Alternatively, you could use icons from the cupertino_icons package, however, it does not feature your desired icon either.