fluttercommunity / font_awesome_flutter

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

Thousands of issues reported in the Example folder after the 'Pro' modification #143

Closed illuminated closed 3 years ago

illuminated commented 3 years ago

After following all the steps to enable the Pro set I am able to import font_awesome_flutter in my project but I get thousands of errors within the example folder in the overridden package folder:

image

The update process runs flawlessly:

# localuser in ~/AndroidStudioProjects/project_name [1:43:35]
→ cd packages/font_awesome_flutter

# localuser in ~/AndroidStudioProjects/project_name/packages/font_awesome_flutter [11:40:04]
→ flutter clean                   
Deleting .dart_tool...                                               8ms

# localuser in ~/AndroidStudioProjects/project_name/packages/font_awesome_flutter [11:40:13]
→ ./tool/update.sh                
Custom icons.json found, using local data only.
Formatted ./lib/font_awesome_flutter.dart
Formatted ./example/lib/icons.dart

# localuser in ~/AndroidStudioProjects/project_name/packages/font_awesome_flutter [11:40:21]
→ flutter packages get            
Running "flutter pub get" in font_awesome_flutter...                0.4s
Running "flutter pub get" in example...                             0.3s

# localuser in ~/AndroidStudioProjects/project_name/packages/font_awesome_flutter [11:40:28]
→ 

This is the error shown in the icons.dart in the example folder regarding the example icon:

image

main.dart of the Example shows the same for the import statement:

image

illuminated commented 3 years ago

Changed the import statement to import 'icons.dart'; and it works now as expected.