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.
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
When I tell the icon to be on one type it shows something completely different.
Icon(
Icons.ac_unit
),
It was supposed to be an ac unit but it's this instead. This even affects included
widgets like the calendar widget.
Try flutter clean & flutter pub cache repair to see if it resolves your issue.
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.
I got a requirement to use the natively developed screen as a form of widget in the flutter code.
say i have a screen where half of the screen contains google-map for some height and rest of the design includes some other widgets. Here i want the google-map widget-a natively developed screen in the flutter as a widget(not as a screen directly but as a form of widget).
I want to know whether it is possible to do this way or not if yes how can we achieve this if anyone have any resources or links please share , it would be helpful to me.
Thanks in advance.
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.