open_iconic_flutter 0.1.0 copy "open_iconic_flutter: ^0.1.0" to clipboard
open_iconic_flutter: ^0.1.0 copied to clipboard

outdatedDart 1 only

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.

7
likes
0
pub points
79%
popularity

Publisher

unverified uploader

The Open Iconic icon pack available as a set of Flutter Icons

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on open_iconic_flutter