painter_from_svg 0.0.2
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, andheightparsing to calculate size and offsets. - Generates individual Dart files for each SVG icon.
- Aggregates generated painters into a
CustomIconsclass with static accessors. - Includes reusable
CustomIconwidget that adapts toIconTheme. - Supports basic SVG attributes:
fill,stroke,stroke-width,stroke-linecap,stroke-linejoin. - Configurable via command-line arguments and optional
icons.yamlfile.