Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Pub](https://img.shields.io/pub/v/font_awesome_flutter.svg)](https://pub.dartlang.org/packages/font_awesome_flutter)

The *free* [Font Awesome](https://fontawesome.com/icons) Icon pack available
as set of Flutter Icons - based on font awesome version 7.0.0.
as set of Flutter Icons - based on font awesome version 7.0.1.

This icon pack includes only the *free* icons offered by Font Awesome out-of-the-box.
If you have purchased the pro icons and want to enable support for them, please see the instructions below.
Expand Down Expand Up @@ -90,8 +90,9 @@ a public github repository or other public file sharing services.
* Download the desktop version of font awesome pro and open it
* Move **all** `.otf` files from the `otfs` directory and `icons.json` from `metadata` to
`path/to/your/font_awesome_flutter/lib/fonts`. Replace existing files.
Newer versions might have an `icon-families.json`. If this is the case,
move its contents to `path/to/your/font_awesome_flutter/lib/fonts/icons.json`.
* Newer versions might have an `icon-families.json`. If this is the case,
move its contents to `path/to/your/font_awesome_flutter/lib/fonts/icons.json`.
* To prevent issues with the web and testing, make sure to replace spaces in the filenames with dashes.
* 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.
Expand Down
9 changes: 5 additions & 4 deletions lib/font_awesome_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ class FontAwesomeIcons {
/// Solid Ban icon
///
/// https://fontawesome.com/icons/ban?style=solid
/// 404, abort, ban, block, cancel, delete, deny, disabled, entry, failed, forbidden, hide, no, not, not found, prohibit, prohibited, remove, stop, trash
/// 404, abort, ban, block, cancel, circle, delete, deny, disabled, entry, failed, forbidden, hide, no, not, not found, prohibit, prohibited, remove, slash, stop, trash
static const IconData ban = IconDataSolid(0xf05e);

/// Alias cancel for icon [ban]
Expand All @@ -1056,7 +1056,7 @@ class FontAwesomeIcons {
/// Solid Ban Smoking icon
///
/// https://fontawesome.com/icons/ban-smoking?style=solid
/// ban, cancel, deny, disabled, forbidden, no, no smoking, non-smoking, not, prohibited, smoking
/// ban, cancel, circle, deny, disabled, forbidden, no, no smoking, non-smoking, not, prohibited, slash, smoking
static const IconData banSmoking = IconDataSolid(0xf54d);

/// Alias smoking-ban for icon [banSmoking]
Expand Down Expand Up @@ -10145,8 +10145,9 @@ class FontAwesomeIcons {
///
/// https://fontawesome.com/icons/person-walking-dashed-line-arrow-right?style=solid
/// exit, follow, refugee, uer
static const IconData personWalkingDashedLineArrowRight =
IconDataSolid(0xe553);
static const IconData personWalkingDashedLineArrowRight = IconDataSolid(
0xe553,
);

/// Solid Person Walking Luggage icon
///
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 9 additions & 9 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,37 @@ flutter:
fonts:
- family: FontAwesomeBrands
fonts:
- asset: lib/fonts/Font Awesome 7 Brands-Regular-400.otf
- asset: lib/fonts/Font-Awesome-7-Brands-Regular-400.otf
weight: 400
- family: FontAwesomeRegular
fonts:
- asset: lib/fonts/Font Awesome 7 Free-Regular-400.otf
- asset: lib/fonts/Font-Awesome-7-Free-Regular-400.otf
weight: 400
- family: FontAwesomeSolid
fonts:
- asset: lib/fonts/Font Awesome 7 Free-Solid-900.otf
- asset: lib/fonts/Font-Awesome-7-Free-Solid-900.otf
weight: 900
# - family: FontAwesomeLight
# fonts:
# - asset: lib/fonts/Font Awesome 7 Pro-Light-300.otf
# - asset: lib/fonts/Font-Awesome-7-Pro-Light-300.otf
# weight: 300
# - family: FontAwesomeThin
# fonts:
# - asset: lib/fonts/Font Awesome 7 Pro-Thin-100.otf
# - asset: lib/fonts/Font-Awesome-7-Pro-Thin-100.otf
# weight: 100
# - family: FontAwesomeSharpThin
# fonts:
# - asset: lib/fonts/Font Awesome 7 Sharp-Thin-100.otf
# - asset: lib/fonts/Font-Awesome-7-Sharp-Thin-100.otf
# weight: 100
# - family: FontAwesomeSharpLight
# fonts:
# - asset: lib/fonts/Font Awesome 7 Sharp-Light-300.otf
# - asset: lib/fonts/Font-Awesome-7-Sharp-Light-300.otf
# weight: 300
# - family: FontAwesomeSharpRegular
# fonts:
# - asset: lib/fonts/Font Awesome 7 Sharp-Regular-400.otf
# - asset: lib/fonts/Font-Awesome-7-Sharp-Regular-400.otf
# weight: 400
# - family: FontAwesomeSharpSolid
# fonts:
# - asset: lib/fonts/Font Awesome 7 Sharp-Solid-900.otf
# - asset: lib/fonts/Font-Awesome-7-Sharp-Solid-900.otf
# weight: 900
6 changes: 3 additions & 3 deletions util/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ void main(List<String> rawArgs) async {
File('lib/fonts/icons.json'));
await download(
'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/$defaultBranch/otfs/Font Awesome 7 Brands-Regular-400.otf',
File('lib/fonts/Font Awesome 7 Brands-Regular-400.otf'));
File('lib/fonts/Font-Awesome-7-Brands-Regular-400.otf'));
await download(
'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/$defaultBranch/otfs/Font Awesome 7 Free-Regular-400.otf',
File('lib/fonts/Font Awesome 7 Free-Regular-400.otf'));
File('lib/fonts/Font-Awesome-7-Free-Regular-400.otf'));
await download(
'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/$defaultBranch/otfs/Font Awesome 7 Free-Solid-900.otf',
File('lib/fonts/Font Awesome 7 Free-Solid-900.otf'));
File('lib/fonts/Font-Awesome-7-Free-Solid-900.otf'));
} else {
print(blue('Custom icons.json found, generating files'));
}
Expand Down