Font Awesome
The Font Awesome Icon pack available as set of Flutter Icons.
Based on Font Awesome 5.15.1. Includes all free icons:
Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS. FontAwesome.cc offers a quick searchable reference (lookup) table of Font Awesome icons. Download and install the Font Awesome free font family by Dave Gandy as well as test-drive and see a complete character set. Feather Icons is a pack of awesome font icons that are simply beautiful. These open-source icons can be customized according to size, color, and stroke width with ease. Moreover, you can find approximately 300 free open source font icons in no time at all. FontAwesome.cc offers a quick searchable reference (lookup) table of Font Awesome icons.
- Regular
- Solid
- Brands
Installation #
In the dependencies:
section of your pubspec.yaml
, add the following line:
Usage #
Icon names #
Icon names equal those on the official website, but are written in lower camel case. If more than one icon style is available for an icon, the style name is used as prefix, except for 'regular'.
Examples:
Icon name | Code | Style |
---|---|---|
angle-double-up | FontAwesomeIcons.angleDoubleUp | solid (this icon does not have other free styles) |
arrow-alt-circle-up | FontAwesomeIcons.arrowAltCircleUp | regular |
arrow-alt-circle-up | FontAwesomeIcons.solidArrowAltCircleUp | solid |
Example App #
View the Flutter app in the example
directory to see all the available FontAwesomeIcons
.
FAQ #
Why aren't the icons aligned properly or why are the icons being cut off? #
See Full List On Fontawesome.cc
Please use the FaIcon
widget provided by the library instead of the Icon
widget provided by Flutter. The Icon
widget assumes all icons are square, butmany Font Awesome Icons are not.
Font Awesome - Arrows Icons
Why aren't the icons showing up on Mobile devices? #
If you're not seeing any icons at all, sometimes it means that Flutter has a cached version of the app on device and hasn't pushed the new fonts. I've run into that as well a few times...
Font Awesome Free
Please try:
- Stopping the app
- Running
flutter clean
in your app directory - Deleting the app from your simulator / emulator / device
- Rebuild & Deploy the app.
Why aren't the icons showing up on Web? #
Most likely, the fonts were not correctly added to the FontManifest.json
.Note: older versions of Flutter did not properly package non-Material fonts in the FontManifest.json
during the build step, but that issue has been resolved and this shouldn't be much of a problem these days.
Please ensure you are using Flutter 1.14.6 beta
or newer!
How can I use pro icons? #
This library only packages the free Font Awesome icon fonts. If you own the proicon fonts and want to use them with Flutter, please follow these instructions.
❗ By importing pro icons you acknowledge that it is your obligationto keep these files private. This includes not uploading your package toa public github repository or other public file sharing services.
- Download this package's newest release, extract the folder, move it to a location of your choice and go to that directory
- Remove
#
s frompubspec.yaml
at the indicated position - run
flutter packages get
- Download your font awesome pro icons (web version)
- Move all
.ttf
files from thewebfonts
directory to/path/to/your/font_awesome_flutter/lib/fonts
(replace existing fonts) - Move
icons.json
frommetadata
to/path/to/your/font_awesome_flutter
- From there run
./tool/update.sh
on linux or.toolupdate.bat
on windows- Note for windows users: Please run the script only in cmd or powershell. Flutter is known to have problems with third-party shells.
- Add version
>= 4.7.0
to your project's dependencies, Override it with the path to your local installation:
Duotone icons #
Duotone icons require special treatment. Instead of FaIcon
a special classFaDuotoneIcon
needs to be used. It allows to set the primary and secondary colorsfor the icon. If primary and / or secondary color are not defined, they will default to the standard IconTheme
color. Please be aware that only duotone style icons can be passed to this class.