Builds FontAwesome Pro icons in your flutter project. No repo cloning is needed!
Add font_awesome_pro_flutter: <latest version>
to your dev_dependencies
.
It is a builder, so you'll need to set up build_runner
. Read more here.
Then you need to install the fonts you'd like:
# pubspec.yaml
fonts:
- family: FontAwesomeRegular
fonts:
- asset: fonts/fa-regular-400.ttf
- family: FontAwesomeSolid
fonts:
- asset: fonts/fa-solid-900.ttf
- family: FontAwesomeLight
fonts:
- asset: fonts/fa-light-300.ttf
- family: FontAwesomeThin
fonts:
- asset: fonts/fa-thin-100.ttf
- family: FontAwesomeBrands
fonts:
- asset: fonts/fa-brands-400.ttf
These can be downloaded at FontAwesome.
The currently supported version is 6.1.1
.
The library will only generate the icons when used. E.g., if you write
const IconData icon = FASolid.faX;
the library will generate faX
for the solid style.
- Duotone is NOT yet supported.