svg2dart 0.0.4
svg2dart: ^0.0.4 copied to clipboard
A command-line tool to convert SVG files into pure Dart code for Flutter, generating performant widgets that use LeafRenderObjectWidget for rendering.
Changelog #
0.0.4 #
- The code generator has been completely rewritten to produce widgets based on
LeafRenderObjectWidget
and a pre-recordedui.Picture
. - Generated widgets now accept
width
andheight
parameters for direct sizing, similar toflutter_svg
. - The generator now detects and skips SVG files that contain
<image>
tags, as raster images are not supported. - Updated package description and
README.md
to reflect the new architecture.
0.0.3 #
- Add support for build_runner
0.0.2 #
- Add formatting and fixing functions for SVG output.
- Improve code generation.
0.0.1 #
- Initial release of the package.
- Converts SVG files to Flutter
CustomPainter
widgets. - Supports paths, fills, strokes, and basic gradients.
- Handles single files and entire directories.