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:
fonts:
- family: FontAwesome # Do not change!
fonts:
- asset: packages/font_awesome_flutter/fonts/fontawesome-webfont.woff
- asset: fontawesome.woff
```
## Usage
......@@ -30,12 +30,15 @@ In the `flutter:` section of your `pubspec.yaml`, add the following section:
```dart
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
// ... later in the build method
new IconButton(
icon: new Icon(FontAwesomeIcons.gamepad),
onPressed: () { print("Pressed"); }
)
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
......
......@@ -15,4 +15,4 @@ flutter:
fonts:
- family: FontAwesome # Do not change!
fonts:
- asset: packages/font_awesome_flutter/fonts/fontawesome-webfont.woff
\ No newline at end of file
- asset: packages/font_awesome_flutter/fonts/fontawesome.woff
\ 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