The Font Awesome Icon pack available as set of Flutter Icons.
Based on Font Awesome 5.0.13. Includes all free icons:
- Regular
- Solid
- Brands
In the dependencies:
section of your pubspec.yaml
, add the following line:
font_awesome_flutter: <latest_version>
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return new IconButton(
// Use the FontAwesomeIcons class for the IconData
icon: new Icon(FontAwesomeIcons.gamepad),
onPressed: () { print("Pressed"); }
);
}
}
View the Flutter app in the example
directory to see all the available FontAwesomeIcons
.
- Brian Egan
- Phil Plante