Need help with font_awesome_flutter?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

636 Stars 131 Forks Other 189 Commits 4 Opened issues


The Font Awesome Icon pack available as Flutter Icons

Services available


Need anything else?

Contributors list


Flutter Community: font_awesome_flutter


The Font Awesome Icon pack available as set of Flutter Icons.

Based on Font Awesome 5.15.4. Includes all free icons:

  • Regular
  • Solid
  • Brands


In the

section of your
, add the following line:


import 'package:font_awesome_flutter/font_awesome_flutter.dart';

class MyWidget extends StatelessWidget { Widget build(BuildContext context) { return IconButton( // Use the FaIcon Widget + FontAwesomeIcons class for the IconData icon: FaIcon(FontAwesomeIcons.gamepad), onPressed: () { print("Pressed"); } ); } }

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". Due to restrictions in dart, icons starting with numbers have those numbers written out.


Icon name

Code Style

solid (this icon does not have other free styles)

Example App

View the Flutter app in the

directory to see all the available

Customizing font awesome flutter

We supply a configurator tool to assist you with common customizations to this package. All options are interoperable. By default, if run without arguments and no

exists, it updates all icons to the newest free version of font awesome.


To use your custom version, you must first clone this repository to a location of your choice and run

flutter pub get
inside. This installs all dependencies.

The configurator is located in the

folder and can be started by running
on Windows, or
on linux. All following examples use the
version, but are exactly the same for
. An overview of available options can be viewed with --help

To use your customized version in an app, go to the app's

and add a dependency for
font_awesome_flutter: '>= 4.7.0'
. Then override the dependency's location: ```yaml dependencies: fontawesomeflutter: '>= 4.7.0' ...

dependencyoverrides: fontawesomeflutter: path: /path/to/your/fontawesome_flutter ... ```

Enable pro icons

:exclamation: By importing pro icons you acknowledge that it is your obligation to keep these files private. This includes not uploading your package to a public github repository or other public file sharing services.

  • Go to the location of your custom fontawesomeflutter version (see setup)
  • Download the web version of font awesome pro and open it
  • Move all
    files from the
    directory and
    . Replace existing files.
  • Run the configurator. It should say "Custom icons.json found"

It may be required to run

flutter clean
in apps who use this version for changes to appear.

Excluding styles

One or more styles can be excluded from all generation processes by passing them with the

$ --exclude solid
$ --exclude solid,brands

See the optimizations and dynamic icon retrieval by name sections for more information as to why it makes sense for your app.

Retrieve icons dynamically by their name or css class

Probably the most requested feature after support for pro icons is the ability to retrieve an icon by their name. This was previously not possible, because a mapping from name to icon would break all discussed optimizations. Please bear in mind that this is still the case. As all icons could theoretically be requested, none can be removed by flutter. It is strongly advised to only use this option in conjunction with a limited set of styles and with as few of them as possible. You may need to build your app with the

flag for it to succeed.

Using the new configurator tool, this is now an optional feature. Run the tool with the

flag to generate...
$ --dynamic
...and the following import to use the map. For normal icons, use
with a key of this format: 'style icon-name'. For duotone icon, use
- the icon name is sufficient as key. ```dart import 'package:fontawesomeflutter/nameiconmapping.dart';

... FaIcon( icon: faIconMapping['solid abacus'], ); ... ```

To exclude unused styles combine the configurator options:

$ --dynamic --exclude solid

A common use case also includes fetching css classes from a server. The utility function

takes a string of classes and returns the icon which would be shown by a browser:
getIconFromCss('far custom-class fa-abacus'); // returns the abacus icon in regular style. custom-class is ignored

Duotone icons

Duotone icons require special treatment. Instead of

a special class
needs to be used. It allows to set the primary and secondary colors for the icon. If primary and / or secondary color are not defined, they will default to the standard
color. Please be aware that only duotone style icons can be passed to this class.
is only available if at least one duotone icon was added using the configurator.


Why aren't the icons aligned properly or why are the icons being cut off?

Please use the

widget provided by the library instead of the
widget provided by Flutter. The
widget assumes all icons are square, but many Font Awesome Icons are not.

What about file size and ram usage

This package has been written in a way so that it only uses the minimum amount of resources required.

All links (eg.

) to unused icons will be removed automatically, which means only required icon definitions are loaded into ram.

Flutter 1.22 added icon tree shaking. This means unused icon "images" will be removed as well. However, this only applies to styles of which at least one icon has been used. Assuming only icons of style "regular" are being used, "regular" will be minified to only include the used icons and "solid" and "brands" will stay in their raw, complete form. This issue is being tracked over in the flutter repository.

However, using the configurator, you can easily exclude styles from the package. For more information, see customizing font awesome flutter

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...

Please try:

  1. Stopping the app
  2. Running
    flutter clean
    in your app directory
  3. Deleting the app from your simulator / emulator / device
  4. Rebuild & Deploy the app.

Why aren't the icons showing up on Web?

Most likely, the fonts were not correctly added to the

. Note: older versions of Flutter did not properly package non-Material fonts in the
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!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.