svg_painter
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.
- Add
svg_painterto yourdev_dependencies. - Add
svg_painter_annotationto yourdependencies. - Annotate your classes with
@SvgPainter.file(...)or@SvgPainter.code(...). - Run
dart run build_runner build.
Features
- Parses SVG XML.
- Generates optimized
CustomPaintercode. - Supports
<circle>(Milestone 1).