fluttercommunity / font_awesome_flutter

The Font Awesome Icon pack available as Flutter Icons
Other
838 stars 238 forks source link

Error while updating to pro icons #155

Closed drmspatil closed 3 years ago

drmspatil commented 3 years ago

This is in powershell.

Updating free icons to newest version. The system cannot find the path specified. Error when reading '.\tool\generate_font.dart': No such file or directory. Error when reading '.\tool\generate_example.dart': No such file or directory. No file or directory found at ".\lib\font_awesome_flutter.dart". No file or directory found at ".\example\lib\icons.dart".

michaelspiss commented 3 years ago

Are you running the script from the projects root folder? Please make sure to run tool\update.bat and not only update.bat from inside the tool folder. I guess I should update the script to not be reliant on that though...

drmspatil commented 3 years ago

It worked . thanks . However not able to see icons when using same. Can see only placeholder instead of icon.

michaelspiss commented 3 years ago

Your may need to run flutter clean in your project root and do a rebuild after that. Flutter sometimes has problems with updating assets.

drmspatil commented 3 years ago

Tried it but not working . Even tried to use as local package and as a integrated code also but not happening. Could it be generation issue ?

michaelspiss commented 3 years ago

You may also want to try reinstalling the app. I've tested the generator script with the last couple of font awesome versions without problems, so I'm fairly certain this is just an asset update bug.

You can make sure everything is fine by building the example app in release mode. If there are any icon tree shaking errors, this might a generator issue.

drmspatil commented 3 years ago

With some tweaks its working now . Thanks . I am using duotone icons FaDuotoneIcon( FontAwesomeIcons.duotoneAirplay, size: 50, primaryColor: Colors.black, secondaryColor: Colors.amber, ) Getting error: The argument type 'IconData' can't be assigned to the parameter type 'IconDataDuotone'.

when used in FaIcon() same duotone icon works fine . However it doesn't work with FaDuotoneIcon().

michaelspiss commented 3 years ago

Good to hear it's working now. The duotone icon bug is tracked at #154, I'll have a look at it later today.

michaelspiss commented 3 years ago

Could you do me a favor and describe your problem again in the issue linked above? I cannot replicate any errors with duotone icons