fluttercommunity / font_awesome_flutter

The Font Awesome Icon pack available as Flutter Icons
Other
844 stars 244 forks source link

Pro version does not work #208

Closed tiofabby closed 2 years ago

tiofabby commented 2 years ago

Hi, I have been trying to use Font Awesome Pro version for Flutter for some time now. Icons.json file was missing in previous release versions, so the installation steps described here: https://pub.dev/packages/font_awesome_flutter for Pro version could not be executed. Hopefully in 6.1.0 version such file has been made available (after long email threads and complaints done with their support team). So with 6.1.0 version I could start doing the steps described here to install the Pro version, but unfortunately I am having such issue now when executing configuration.bat file:

PS C:\Dev\font_awesome_flutter\util> .\configurator.bat
#### #
#####################################################################
### ### ############ Font Awesome Flutter Configurator
######################
# # #
#####################################################################

Custom icons.json found, generating files

Generating icon definitions
Formatted no files in 0.87 seconds.
Could not format because the source could not be parsed:

line 220, column 44 of lib\font_awesome_flutter.dart: Expected an
identifier.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^^^^^^
╵
line 220, column 26 of lib\font_awesome_flutter.dart: Operator
declarations must be preceded by the keyword 'operator'.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^
╵
line 220, column 26 of lib\font_awesome_flutter.dart: Methods must have
an explicit list of parameters.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^
╵
line 256, column 25 of lib\font_awesome_flutter.dart: Variables must be
declared using the keywords 'const', 'final', 'var' or a type name.
â•·
256 │ static const IconData 42Group = IconDataBrands(0xe080);
│ ^^^^^
╵
line 220, column 14 of lib\font_awesome_flutter.dart: Expected to find ';'.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^^^^^^^^
╵
line 256, column 14 of lib\font_awesome_flutter.dart: Expected to find ';'.
â•·
256 │ static const IconData 42Group = IconDataBrands(0xe080);
│ ^^^^^^^^
╵
line 220, column 26 of lib\font_awesome_flutter.dart: The string '='
isn't a user-definable operator.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^
╵
line 220, column 23 of lib\font_awesome_flutter.dart: Expected a class
member.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^^
╵
line 256, column 23 of lib\font_awesome_flutter.dart: Expected a class
member.
â•·
256 │ static const IconData 42Group = IconDataBrands(0xe080);
│ ^^
╵
line 220, column 28 of lib\font_awesome_flutter.dart: A function body
must be provided.
â•·
220 │ static const IconData 00 = IconDataRegular(0xe467);
│ ^^^^^^^^^^^^^^^
╵

Generating example code
Formatted no files in 0.38 seconds.
Could not format because the source could not be parsed:

line 67, column 29 of example\lib\icons.dart: Expected to find ','.
â•·
67 │ ExampleIcon(FontAwesomeIcons.42Group, '42Group'),
│ ^^^
╵
line 58, column 29 of example\lib\icons.dart: Expected to find ','.
â•·
58 │ ExampleIcon(FontAwesomeIcons.00, '00'),
│ ^^^
╵
line 67, column 32 of example\lib\icons.dart: Expected to find ','.
â•·
67 │ ExampleIcon(FontAwesomeIcons.42Group, '42Group'),
│ ^^^^^
╵

Found duotone icons. Enabling duotone example.

Found and enabled the following icon styles:
brands, regular, solid, light, duotone, thin

Running "dart pub get"
Resolving dependencies...
collection 1.15.0 (1.16.0 available)
fake_async 1.2.0 (1.3.0 available)
flutter_lints 1.0.4 (2.0.0 available)
lints 1.0.1 (2.0.0 available)
+ material_color_utilities 0.1.3 (0.1.4 available)
path 1.8.0 (1.8.1 available)
source_span 1.8.1 (1.8.2 available)
> test_api 0.4.8 (was 0.4.3) (0.4.9 available)
vector_math 2.1.1 (2.1.2 available)
Changed 2 dependencies!

Done

I hope you guys could help as people from official Font Awesome support are telling me that they do not support Flutter anymore and cannot help... Thank you Fabrice

michaelspiss commented 2 years ago

Hi, it seems like you are not on the latest version of font_awesome_flutter. Please run git pull inside the font_awesome_flutter directory, or download the latest version from the master branch.

tiofabby commented 2 years ago

Hi @michaelspiss, it fixed the issue indeed using the very last version! Thanks a lot. I am now able to use the Pro version! I am very grateful for your help! :-) I have been trying to implement such version for so long now! Thank you!!!