svg_painter 0.1.0 copy "svg_painter: ^0.1.0" to clipboard
svg_painter: ^0.1.0 copied to clipboard

A code generator that compiles SVG files into Flutter CustomPainter code.

svg_painter #

CI codecov pub package

The code generator for the svg_painter library. This package is responsible for parsing SVG files and generating the corresponding Flutter CustomPainter code.

Usage #

This package is intended to be used as a dev_dependency alongside build_runner.

  1. Add svg_painter to your dev_dependencies.
  2. Add svg_painter_annotation to your dependencies.
  3. Annotate your classes with @SvgPainter.file(...) or @SvgPainter.code(...).
  4. Run dart run build_runner build.

Features #

  • Parses SVG XML.
  • Generates optimized CustomPainter code.
  • Supports <circle> (Milestone 1).
1
likes
0
points
149
downloads

Publisher

unverified uploader

Weekly Downloads

A code generator that compiles SVG files into Flutter CustomPainter code.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, code_builder, dart_style, meta, path, source_gen, svg_painter_annotation, xml

More

Packages that depend on svg_painter