font_awesome_flutter 4.7.1 copy "font_awesome_flutter: ^4.7.1" to clipboard
font_awesome_flutter: ^4.7.1 copied to clipboard

outdatedDart 1 only

The Font Awesome Icon pack available as Flutter Icons

font_awesome_flutter #

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

Installation #

This requires two steps:

Install the dependency #

In the dependencies: section of your pubspec.yaml, add the following line:

  font_awesome_flutter: 4.7.0    

Install the font asset #

In the flutter: section of your pubspec.yaml, add the following section:

  fonts:
    - family: FontAwesome # Do not change!
      fonts:
        - asset: packages/font_awesome_flutter/fonts/fontawesome.woff

Usage #

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"); }
     );
  }
}

Example #

View the Flutter app in the example directory to see all the available FontAwesomeIcons.

4184
likes
0
pub points
100%
popularity

Publisher

verified publisherfluttercommunity.dev

The Font Awesome Icon pack available as Flutter Icons

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on font_awesome_flutter