NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #150 most downloaded on pub.dev
A compiler to convert SVGs to the binary format used by `package:vector_graphics`.
Latest stable
1.3.6
Last release 11 days ago
11 Nov 2026
Release timing varies
gaps range from 9 days to 5 months
Nearly every release is documented
notes for 45 of 48 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
48 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
[various] Support SVG filters (blur, offset, feMerge)
[various] Support SVG filters (blur, offset, feMerge)
Fixes flutter/flutter#158592
This PR introduces support for basic SVG filters (feGaussianBlur, feOffset, and feMerge) to the vector_graphics ecosystem. (Alpha mask support has been split out into a separate PR per review feedback.)
Key Features:
feGaussianBlur, feOffset, and feMerge in vector_graphics_compiler.vector_graphics_codec to support encoding and decoding paint blurs.vector_graphics to render paint blurs using Flutter's ui.ImageFilter.blur.SourceAlpha filters to preserve opacity variations in gradient stops by mapping gradient colors to black while maintaining their alpha values.Implementation Details:
SourceGraphic/SourceAlpha to determine the necessary rendering layers.feMerge) by duplicating the target rendering nodes for each layer in the AST.TextPositionNode level (rather than leaf TextNodes) to maintain correct text chunk alignment and cursor positioning.SourceAlpha state down the tree.blurSigmaX/blurSigmaY when TessellationVisitor and PathOps convert PathNodes to VerticesNodes.MaskingOptimizer, ClippingOptimizer, and OverdrawOptimizer from collapsing or intersecting paths that carry a blur filter (since blurred paint extends beyond geometric path bounds).stdDeviation values.stdDeviation attributes to 0.0 (as per SVG spec).in attributes for feMergeNodes (falling back to the previous sibling primitive's result or SourceGraphic).SourceAlpha filters.<feMerge /> elements.SourceGraphic branches in a merge).try-finally blocks inside parent node and text position node visitors to guarantee robust recovery in case of exceptions.ResolvingVisitor to prevent redundant object allocations for shared SVG gradients.imageFilter when blur standard deviations are 0.0 to avoid unnecessary rendering overhead in Flutter.Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
TAG=agy
CONV=27cb188a-9ad9-4434-8918-8ef71bdba17c
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feGaussianBlur, feOffset, feMerge, and feMergeNode).[vector_graphics_compiler] Resolve Flutter artifact cache via package…
[vector_graphics_compiler] Resolve Flutter artifact cache via package…
package:cli_util when running as a
standalone AOT-compiled executable (such as via dart install or
dart run vector_graphics_compiler@).Text x , y , dx and dy values in em were treated as pixels. For example, dy=".35em" with font-size="425px" moved the text down by 0.35 pixels instead
Text x, y, dx and dy values in em were treated as pixels. For example, dy=".35em" with font-size="425px" moved the text down by 0.35 pixels instead of about 149, so text centered this way was drawn too high.
DoubleOrPercentage.fromString stripped the unit with parseDouble, so an em value ended up the same as a plain number. Now it remembers that the value is in em, and computeTextPosition multiplies it by the element's font size, including one inherited from a parent. Without a font size it uses kDefaultFontSize (16), the same default computeTextConfig uses when drawing the text. The bug is in vector_graphics_compiler, which flutter_svg uses to parse SVGs.
Fixes flutter/flutter#158758
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
[vector_graphics_compiler] Handle coordinate lists on text and tspan …
[vector_graphics_compiler] Handle coordinate lists on text and tspan …
UnimplementedError instead of a FormatException when text or
tspan has a list of x, y, dx or dy values, which isn't supported.A tspan without its own x / y inside a translated g was drawn with the translation applied twice.
A tspan without its own x/y inside a translated g was drawn with the translation applied twice.
The parent text has x/y, so the compiler applies the transform to its position. The tspan has no position, so it kept the transform as well. The renderer then applied that transform on top of a position that already had it.
Now a tspan without its own position follows its parent: if the parent already applied the transform, the tspan does not apply it again. The bug is in vector_graphics_compiler, which flutter_svg uses to parse SVGs.
Fixes flutter/flutter#189925
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.
tspan without its own position being drawn with its parent group
transform applied twice.[vector_graphics_compiler] Support SVG alpha masks (mask-type="alpha"…
[vector_graphics_compiler] Support SVG alpha masks (mask-type="alpha"…
mask-type="alpha").An unrecognized font-weight value is now ignored with a warning (and still throws when warningsAsErrors is set) instead of always throwing. This prese
font-weight value is now ignored with a warning (and still
throws when warningsAsErrors is 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 as regular emitted by
some SVG generators.Fixes linux-arm64 host support by selecting the Flutter engine artifact directory from Abi.current() instead of a hardcoded linux-x64.
linux-arm64 host support by selecting the Flutter engine
artifact directory from Abi.current() instead of a hardcoded
linux-x64.Updates allowed version range of xml to include up to 7.0.1.
xml to include up to 7.0.1.Fix Stack Overflow crashes caused by circular references (masks, patterns, deferred nodes, and clip paths).
Fixes the SVG parser injecting a spurious space between adjacent elements that have no whitespace between them in the source. Previously A B was emitt
<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.Adds support for modern space-separated HSL and HSLA color syntax.
Fixes HSL/HSLA color parsing for decimal percentage components (e.g. hsl(270, 100%, 76.27%)).
hsl(270, 100%, 76.27%)).Adds support for percentage units in SVG shape attributes (rect, circle, ellipse, line).
Fixes color parsing for modern rgb and rgba CSS syntax.
Updates allowed version range of xml to include up to 6.6.1.
xml to include up to 6.6.1.Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
Fixes a bug where stroke opacity not applied by color mapper.
Sets stroke-width to 1 by default when an invalid value is parsed instead of throwing an exception.
Fixes a bug where empty tags caused the parser to crash.
Makes the package WASM compatible.
Relaxes dependency constraint on vector_graphics_codec.
Transfers the package source from https://github.com/dnfield/vector_graphics to https://github.com/flutter/packages.
Use package:http to drop dependency on dart:html.
* Relax package:http constraint.
Add missing clip before saveLayer.
* Add missing save before clip.
Fix handling of invalid XML @id attributes.
@id attributes.<use/> elements.--out-dir option to compiler.Fix publication error that did not have latest source code.
Fix case sensitivity on scientific notation parsing.
Support for matching the ambient text direction.
Fix bug in text position computation when transforms are involved.
Support for encoding path control points as IEEE 754-2008 half precision floating point values using the option --use-half-precision-control-points.
--use-half-precision-control-points.Remove/update some invalid assertions related to image formats.
Support more image formats and malformed MIME types.
fill-rules.Further improvements to whitespace handling for text.
Fix handling and inheritence of none.
none.Multiple text positioning bug fixes.
Fix a number of inheritence related bugs:
use elements is more correctly handled.currentColor non-null on SVG theme, and fix how it is applied.Fix handling of unspecified fill colors on use/group elements.
Parsing is now synchronous, and is easier to work with in tests.
ids and defined in defs blocks.Fix issue in matrix parsing for some combinations of matrices.
Nothing published for this version
Nothing published for this version
Bug fixes around image handling.
Add optimizations for masks, clipping, and overdraw.
* Create repository
Nothing published for this version
One column per quarter.