open_iconic_flutter 0.1.0 open_iconic_flutter: ^0.1.0 copied to clipboard
The Open Iconic icon pack available as a set of Flutter Icons
open_iconic_flutter #
The Open Iconic 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:
open_iconic_flutter: 0.1.0
Install the font asset #
In the flutter:
section of your pubspec.yaml
, add the following section:
fonts:
- family: OpenIconic # Do not change!
fonts:
- asset: packages/open_iconic_flutter/fonts/open-iconic.woff
Usage #
import 'package:open_iconic_flutter/open_iconic_flutter.dart';
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return new IconButton(
// Use the FontAwesomeIcons class for the IconData
icon: new Icon(OpenIconicIcons.fork),
onPressed: () { print("Pressed"); }
);
}
}
Example #
View the Flutter app in the example
directory to see all the available OpenIconicIcons
.