fluttercommunity / font_awesome_flutter

The Font Awesome Icon pack available as Flutter Icons
Other
831 stars 233 forks source link

How to use Pro version? #233

Closed beiaduo closed 1 year ago

beiaduo commented 1 year ago

I followed the tutorial and it worked; but I don't know how to use it in my new project?

Rafi404 commented 1 year ago

Which is your Flutter Version?

beiaduo commented 1 year ago

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: @.***>

Rafi404 commented 1 year ago

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?

beiaduo commented 1 year ago

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

michaelspiss commented 1 year ago

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.

beiaduo commented 1 year ago

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: @.***>

michaelspiss commented 1 year ago

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.

beiaduo commented 1 year ago

Thanks