Built with ☕️ by QuocHoang
Add hoagicons package into your pubspec.yaml.
dependencies:
hoagicons: # Latest versionYou can also run flutter pub add hoagicons to quickly add latest version from your CLI.
Fetch new icons and automatically generate source code for hoagicons.dart (runs both of the below steps)
dart tool/update.dart
If, for any reason, you need to run the steps separately, you can do so as follows:
-
Fetch new icons, organize into
assets/and update the README.dart tool/fetch_icons.dart
Optionally, a branch may be specified to fetch icons from. For example, to fetch icons from the
devbranch:dart tool/fetch_icons.dart dev
Note that older branches (i.e.,
v1) won't work yet as the SVGs are organized differently and not all styles are available. -
Run source code generation to create
hoagicons.dartfile with an enum entry for every icon.dart tool/generator.dart