vector_graphics_compiler
A compiler to convert SVGs to the binary format used by `package:vector_graphics`.
1.3.0
5.0M downloads/mo
#150 most downloaded on pub.dev
flutter/packages
What this package is like to depend on
Last release 26 days ago
28 Jul 2026
Release timing varies
gaps range from 9 days to 6 months
Nearly every release is documented
notes for 39 of 42 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
42 releases · first in 2022
9 releases in the last 12 months
see the full history below
Release timeline
42 releases · Feb 2022 to Jul 2026
2023
2024
2025
2026
Releases
latest 42-
1.3.028 Jul 2026Release notes
Open source →- An unrecognized
font-weightvalue is now ignored with a warning (and still throws whenwarningsAsErrorsis set) instead of always throwing. This preserves an inherited weight, or the initial normal weight at the root, and lets the compiler tolerate non-standard values such asregularemitted by some SVG generators.
- An unrecognized
-
1.2.617 Jun 2026Release notes
Open source →- Fixes
linux-arm64host support by selecting the Flutter engine artifact directory fromAbi.current()instead of a hardcodedlinux-x64.
- Fixes
-
1.2.529 May 2026 -
1.2.428 May 2026Release notes
Open source →- Fix Stack Overflow crashes caused by circular references (masks, patterns, deferred nodes, and clip paths).
- Prevent CPU/Memory Denial of Service (DoS) resource exhaustion from exponential DAG reference expansions (Billion Laughs SVG exploits) by enforcing a strict, cumulative reference expansion safety limit of 1,000.
- Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
-
1.2.318 May 2026Release notes
Open source →- Fixes the SVG parser injecting a spurious space between adjacent
<tspan>elements that have no whitespace between them in the source. Previously<tspan>A</tspan><tspan>B</tspan>was emitted as"A"+" B", producing a visible gap; it now emits"A"+"B"to match every browser.
- Fixes the SVG parser injecting a spurious space between adjacent
-
1.2.211 May 2026 -
1.2.106 May 2026Release notes
Open source →- Fixes HSL/HSLA color parsing for decimal percentage components (e.g.
hsl(270, 100%, 76.27%)).
- Fixes HSL/HSLA color parsing for decimal percentage components (e.g.
-
1.2.018 Feb 2026Release notes
Open source →- Adds support for percentage units in SVG shape attributes (rect, circle, ellipse, line).
-
1.1.2021 Jan 2026Release notes
Open source →- Fixes color parsing for modern rgb and rgba CSS syntax.
- Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
-
1.1.1925 Aug 2025Release notes
Open source →- Updates allowed version range of
xmlto include up to 6.6.1. - Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
- Updates allowed version range of
-
1.1.1815 Aug 2025Release notes
Open source →- Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
- Fixes SVG matrix parsing to explicitly set the Z scale value.
-
1.1.1723 May 2025 -
1.1.1625 Nov 2024Release notes
Open source →- Sets stroke-width to 1 by default when an invalid value is parsed instead of throwing an exception.
-
1.1.1508 Nov 2024 -
1.1.1405 Nov 2024 -
1.1.1305 Nov 2024 -
1.1.1231 Oct 2024Release notes
Open source →- Transfers the package source from https://github.com/dnfield/vector_graphics to https://github.com/flutter/packages.
-
1.1.1120 Feb 2024 -
1.1.11+120 Feb 2024 -
1.1.1005 Feb 2024 -
1.1.10+106 Feb 2024 -
1.1.912 Oct 2023Release notes
Open source →- Fix handling of invalid XML
@idattributes. - Fix handling of self-referential
<use/>elements. - Add
--out-diroption to compiler. - Tweak warning message for unhandled eleemnts.
- Fix handling of invalid XML
-
1.1.9+124 Oct 2023 -
1.1.9+208 Jan 2024 -
1.1.712 Jun 2023 -
1.1.618 May 2023 -
1.1.511 Apr 2023Release notes
Open source →- Support for encoding path control points as IEEE 754-2008 half precision
floating point values using the option
--use-half-precision-control-points. - Added an error builder property to provide a fallback widget on exceptions.
- Support for encoding path control points as IEEE 754-2008 half precision
floating point values using the option
-
1.1.5+124 Apr 2023 -
1.1.414 Mar 2023Release notes
Open source →- Support more image formats and malformed MIME types.
- Fix inheritence for
fill-rules.
-
1.1.309 Mar 2023 -
1.1.207 Mar 2023 -
1.1.104 Mar 2023Release notes
Open source →- Multiple text positioning bug fixes.
- Preserve stroke-opacity when specified.
-
1.1.022 Feb 2023Release notes
Open source →- Fix a number of inheritence related bugs:
- Inheritence of properties specified on the root element now work.
- Opacity inheritence is more correct now.
- Inheritence of
useelements is more correctly handled.
- Make
currentColornon-null on SVG theme, and fix how it is applied. - Remove the opacity peephole optimizer, which was incorrectly applying optimizations in a few cases. A future release may add this back.
- Add clipBehavior to the widget.
- Fix patterns when multiple patterns are specified and applied within the graphic.
- Fix a number of inheritence related bugs:
-
1.0.102 Feb 2023 -
1.0.018 Nov 2022Release notes
Open source →- Initial stable release.
- Parsing is now synchronous, and is easier to work with in tests.
- Correctly handle images with
ids and defined indefsblocks. - Compile time color remapping support.
-
1.0.0+120 Jan 2023Release notes
Open source →- Fix issue in pattern decoding.
- Fix issue in matrix parsing for some combinations of matrices.
-
0.0.505 Nov 2022Nothing published for this version
-
0.0.405 Nov 2022Nothing published for this version
-
0.0.326 Oct 2022Release notes
Open source →- Better concurrency support
- Pattern support.
- Bug fixes around image handling.
- Bug fix for when optimizers are used on non-default fill types.
- Support for SVG theme related properties (currentColor, font-size, x-height).
-
0.0.210 Aug 2022 -
0.0.126 Jul 2022 -
0.0.028 Feb 2022Nothing published for this version