The Open Iconic icon pack available as set of Flutter Icons.
In the dependencies:
section of your pubspec.yaml
, add the following line:
open_iconic_flutter: 0.1.0
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"); }
);
}
}
View the Flutter app in the example
directory to see all the available OpenIconicIcons
.