painter_from_svg 0.0.2
painter_from_svg: ^0.0.2 copied to clipboard
A Flutter CLI for generating icon files based on CustomPainter for `.svg` files.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate painter_from_svgUse it
The package has the following executables:
$ generate_icons
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add painter_from_svgThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
painter_from_svg: ^0.0.2Alternatively, 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:painter_from_svg/generate_custom_icons_file.dart';
import 'package:painter_from_svg/generate_single_icon.dart';
import 'package:painter_from_svg/svg_parsing.dart';