Commit 0a6df4cb authored by Brian Egan's avatar Brian Egan

Add CHANGELOG and cleanup font name

parent 08b27d1c
## 4.7.0
* Expose Font Awesome 4.7.0 `woff` font asset. This was the smallest version of the font file that worked with Flutter.
* Created `FontAwesomeIcons` class, which provides static access to all Font Awesome 4.7.0 Icons as `IconData`, similar to Flutter's built-in `Icons` class.
* Created a Gallery App that can be used to view all provided icons
* Created README with installation instructions
* Added LICENSE.md file
\ No newline at end of file
...@@ -22,7 +22,7 @@ In the `flutter:` section of your `pubspec.yaml`, add the following section: ...@@ -22,7 +22,7 @@ In the `flutter:` section of your `pubspec.yaml`, add the following section:
fonts: fonts:
- family: FontAwesome # Do not change! - family: FontAwesome # Do not change!
fonts: fonts:
- asset: packages/font_awesome_flutter/fonts/fontawesome-webfont.woff - asset: fontawesome.woff
``` ```
## Usage ## Usage
...@@ -30,12 +30,15 @@ In the `flutter:` section of your `pubspec.yaml`, add the following section: ...@@ -30,12 +30,15 @@ In the `flutter:` section of your `pubspec.yaml`, add the following section:
```dart ```dart
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart';
// ... later in the build method class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
new IconButton( return new IconButton(
icon: new Icon(FontAwesomeIcons.gamepad), // Use the FontAwesomeIcons class for the IconData
onPressed: () { print("Pressed"); } icon: new Icon(FontAwesomeIcons.gamepad),
) onPressed: () { print("Pressed"); }
);
}
}
``` ```
## Example ## Example
......
...@@ -15,4 +15,4 @@ flutter: ...@@ -15,4 +15,4 @@ flutter:
fonts: fonts:
- family: FontAwesome # Do not change! - family: FontAwesome # Do not change!
fonts: fonts:
- asset: packages/font_awesome_flutter/fonts/fontawesome-webfont.woff - asset: packages/font_awesome_flutter/fonts/fontawesome.woff
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment