fluttercommunity / font_awesome_flutter

The Font Awesome Icon pack available as Flutter Icons
Other
842 stars 241 forks source link

Not generating icons.dart file #238

Closed bharathkandula99 closed 1 year ago

bharathkandula99 commented 1 year ago

I inserted 'font awesome flutter: 10.4.0' to my project file and executed the 'flutter pub get' command. icons .where((icon) => _searchTerm.isEmpty || icon.title.toLowerCase().contains(_searchTerm.toLowerCase())) .toList();

The above code was provided to obtain a filtered icons list, however I am unable to locate my project's 'icons. dart' file. Should I manually include the 'icons.dart' file or will it be generated?

But, in git, the icons.dart file should be automatically generated.

michaelspiss commented 1 year ago

Hi, the icons.dart file is only created for the example app and not exported for general use by the package to allow release optimizations. You can obtain a similar list by reading the customizing font awesome flutter steps and following the steps to retrieve icons dynamically. Please be aware that this is going to impact the resulting bundle size.