flutter_icons_generator 1.0.0-dev flutter_icons_generator: ^1.0.0-dev copied to clipboard
Converts all *.svg icons to icon-font (.otf) and generates flutter compatible dart class without additional requirements.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_icons_generator
With Flutter:
$ flutter pub add flutter_icons_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_icons_generator: ^1.0.0-dev
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:flutter_icons_generator/builder.dart';
import 'package:flutter_icons_generator/font_class_gen.dart';
import 'package:flutter_icons_generator/icons_generator.dart';
import 'package:flutter_icons_generator/models/icon_pack.dart';
import 'package:flutter_icons_generator/models/icons_model.dart';