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.
Related
when I type Icons.??? the suggestions don't show up the spinner keeps spinning but never finishes but regular suggestion for regular code show up with no problems. It was working before but I don't know why it stopped working
when I scroll through icons. it loads out very slowly and the ones that are loaded show up in the suggestions
I have tried invalidate caches/restart but didn't work
Do Flutter Clean (Tools>Flutter>Flutter Clean) then Flutter Pub get
and make sure that cupertino_icons is installed in pubspec.yaml file
cupertino_icons: ^1.0.2
My app displays wrong icons.
In my material\icons.dart shows a totally diferent name for the icon.
Problem with flutter version. Nedded to the correct flutter version/update.
So in my flutter app, the material icons show properly in native, but in web, all have a different icon. What should or can I do with it?
This seems to be a cache problem which can either be solved by running flutter pub cache repair or running flutter clean between every step of changing a channel and upgrading it.
How to display a piece of code in flutter application like image below
I tried to use flutter_webview package but i didn't like it.
I am asking if is there any alternative way i can use to display them
To show code in your flutter app you can use markdown and next package:
https://pub.dev/packages/flutter_markdown
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.