svg2dart 0.0.4 copy "svg2dart: ^0.0.4" to clipboard
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-recorded ui.Picture.
  • Generated widgets now accept width and height parameters for direct sizing, similar to flutter_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.
3
likes
0
points
332
downloads

Publisher

unverified uploader

Weekly Downloads

A command-line tool to convert SVG files into pure Dart code for Flutter, generating performant widgets that use LeafRenderObjectWidget for rendering.

Repository (GitHub)
View/report issues

Topics

#svg #flutter #code-generation #widget

License

unknown (license)

Dependencies

args, build, dart_style, meta, path, vector_graphics_codec, vector_graphics_compiler

More

Packages that depend on svg2dart