painter_from_svg 0.0.2 copy "painter_from_svg: ^0.0.2" to clipboard
painter_from_svg: ^0.0.2 copied to clipboard

A Flutter CLI for generating icon files based on CustomPainter for `.svg` files.

0.0.1 #

Initial release #

  • CLI tool to convert SVG files into CustomPainter-based Dart files.
  • Supports viewBox, width, and height parsing to calculate size and offsets.
  • Generates individual Dart files for each SVG icon.
  • Aggregates generated painters into a CustomIcons class with static accessors.
  • Includes reusable CustomIcon widget that adapts to IconTheme.
  • Supports basic SVG attributes: fill, stroke, stroke-width, stroke-linecap, stroke-linejoin.
  • Configurable via command-line arguments and optional icons.yaml file.

0.0.2 #

Added #

  • Documentation comments.
  • Minor formatting and code style improvements across the package.

Fixed #

  • Lint issues related to missing documentation and formatting.
2
likes
140
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter CLI for generating icon files based on CustomPainter for `.svg` files.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, code_builder, dart_style, flutter, glob, path, xml, yaml

More

Packages that depend on painter_from_svg