How to use Pro version?
beiaduo opened this issue · 8 comments
I followed the tutorial and it worked; but I don't know how to use it in my new project?
Which is your Flutter Version?
Add font_awesome_flutter: ^10.3.0 package in pubspec.yaml file. Then use like this
FaIcon(
Icons.access_alarm,
color: whatsappColor,
size: 30,
),
are you try this?
How to use pro Version?
I fllowed
Enable pro icons
❗ By importing pro icons you acknowledge that it is your obligation to keep these files private. This includes not uploading your package to a public github repository or other public file sharing services.
Go to the location of your custom font_awesome_flutter version (see setup)
Download the web version of font awesome pro and open it
Move all .ttf files from the webfonts directory and icons.json from metadata to path/to/your/font_awesome_flutter/lib/fonts. Replace existing files.
Run the configurator. It should say "Custom icons.json found"
But I don't know How to use my new project thanks
If you haven't updated your package override, please have a look at the custom package setup doc.
Then use the icons like @Rafi404 already presented. A more complete example is also available in the usage section.
If there are any specific issues, don't hesitate to ask, but it might take me a while to answer.
You should have something like font_awesome_flutter: ^10.3.0
in your pubspec.yaml
. This, however, refers to the version on pub.dev (do not remove it though). To link to your custom copy which includes pro icons, add the following lines:
dependency_overrides:
font_awesome_flutter:
path: path/to/your/font_awesome_flutter
Replace path/to/your/font_awesome_flutter
with the file path to your custom version on your system.
Other than that, use it just like the normal version.
Thanks