svg_icons_to_font 1.0.0
svg_icons_to_font: ^1.0.0 copied to clipboard
A pure Dart package and CLI tool that converts a folder of SVG icons into an OpenType (.otf) font file and generates a corresponding Flutter IconData Dart class.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate svg_icons_to_fontUse it
The package has the following executables:
$ svg_icons_to_font
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add svg_icons_to_fontWith Flutter:
$ flutter pub add svg_icons_to_fontThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
svg_icons_to_font: ^1.0.0Alternatively, 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:svg_icons_to_font/svg_icons_to_font.dart';