icon_generator 4.0.3 copy "icon_generator: ^4.0.3" to clipboard
icon_generator: ^4.0.3 copied to clipboard

Convert all *.svg icons from dir to icon-font (.ttf) and generates flutter compatible dart class. Forked from https://github.com/rbcprolabs/icon_font_generator

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate icon_generator

Use it

The package has the following executables:

$ icon_generator

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add icon_generator

With Flutter:

 $ flutter pub add icon_generator

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  icon_generator: ^4.0.3

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:icon_generator/generate_flutter_class.dart';
import 'package:icon_generator/templates/flutter_icons.dart';
import 'package:icon_generator/templates/npm_package.dart';
import 'package:icon_generator/utils.dart';
1
likes
140
pub points
64%
popularity

Publisher

verified publisherarcane.art

Convert all *.svg icons from dir to icon-font (.ttf) and generates flutter compatible dart class. Forked from https://github.com/rbcprolabs/icon_font_generator

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, meta, path, recase

More

Packages that depend on icon_generator