flutter_icons_generator 1.0.0-dev-1 flutter_icons_generator: ^1.0.0-dev-1 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 Flutter:
$ flutter pub add flutter_icons_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_icons_generator: ^1.0.0-dev-1
Alternatively, your editor might support 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';