Closed beiaduo closed 1 year ago
Which is your Flutter Version?
last Version
On Thu, Feb 9, 2023 at 9:12 PM Rafi404 @.***> wrote:
Which is your Flutter Version?
— Reply to this email directly, view it on GitHub https://github.com/fluttercommunity/font_awesome_flutter/issues/233#issuecomment-1425183544, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATA43IYKC37P4W3TYTFQYK3WWXE3FANCNFSM6AAAAAAUWBVAH4 . You are receiving this because you authored the thread.Message ID: @.***>
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 mean, add Pro Icons according to the custom method, and then refer to my own custom package in flutter?
On Fri, Feb 10, 2023 at 8:18 AM Michael Spiss @.***> wrote:
If you haven't updated your package override, please have a look at the custom package setup https://github.com/fluttercommunity/font_awesome_flutter#setup doc. Then use the icons like @Rafi404 https://github.com/Rafi404 already presented. A more complete example is also available in the usage https://github.com/fluttercommunity/font_awesome_flutter#usage section.
If there are any specific issues, don't hesitate to ask, but it might take me a while to answer.
— Reply to this email directly, view it on GitHub https://github.com/fluttercommunity/font_awesome_flutter/issues/233#issuecomment-1426039557, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATA43I6FL75XYGJA72K3NBTWWZS6VANCNFSM6AAAAAAUWBVAH4 . You are receiving this because you authored the thread.Message ID: @.***>
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
I followed the tutorial and it worked; but I don't know how to use it in my new project?