ilikerobots / polyicon

Flutter icon set generator
http://fluttericon.com
MIT License
421 stars 49 forks source link

Dart file issues #54

Closed maerlynflagg closed 4 years ago

maerlynflagg commented 4 years ago

after downloading #46 is now working, i found other issues after replacing the old TTF and old dart file.

i have do get packages again and i cleaned the flutter build. i tried to delete the old dart file and add the new one. the issues are only with the new downloaded dart file, not with the old icon dart files.

currently i cannot build the app.

maybe i'm missing something?

the errors:

Expected to find ';'.

IconData isn't a type.
Try correcting the name to match an existing type.
Const variables must be initialized with a constant value.
Try changing the initializer to be a constant expression.

to visualize you the problem , here a simple screenshot: icon_errors

ilikerobots commented 4 years ago

It's likely the variable name beginning with a number, which is disallowed by Dart lang spec. I should put in a filter to rename leading integer icon names (I thought I already had, in fact). But for now, just rename your icon to a valid dart id, e.g. "drei_fach_verglast".

maerlynflagg commented 4 years ago

Thanks for help. issue solved. :)