svg_to_avd 0.0.3 copy "svg_to_avd: ^0.0.3" to clipboard
svg_to_avd: ^0.0.3 copied to clipboard

A library and CLI to convert SVG into Android Vector Drawable

example/main.dart

import 'dart:io';

import 'package:svg_to_avd/svg_to_avd.dart';

Future<void> main() async {
  final svg = File('file.svg').readAsStringSync();

  // Will generate an interactive XmlDocument.
  final avd = SvgToAvd.fromString(svg);

  // Creates a new file with the converted value.
  await File('file.xml').writeAsString(avd.toPrettyXmlString());
}
5
likes
160
pub points
36%
popularity

Publisher

verified publisherjcquintas.dev

A library and CLI to convert SVG into Android Vector Drawable

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, path, xml

More

Packages that depend on svg_to_avd