NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #151 most downloaded on pub.dev
A vector graphics rendering package for Flutter using a binary encoding.
Latest stable
1.3.1
Last release 10 days ago
11 Nov 2026
Release timing varies
gaps range from 9 days to 9 months
Nearly every release is documented
notes for 42 of 44 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
45 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
[vector_graphics] Use font-family lists as a family with fallbacks (#…
[vector_graphics] Use font-family lists as a family with fallbacks (#…
font-family list, such as "Roboto, sans-serif", being used as a
single family name. The first family is used and the others become fallbacks.[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] Catch any throwable in useHtmlRenderObject() and ca…
[vector_graphics] Catch any throwable in useHtmlRenderObject() and ca…
useHtmlRenderObject() so VectorGraphic widgets
reliably fall back to the HTML render object and cache the fallback instead
of crashing repeatedly (flutter/flutter#189451).FlutterVectorGraphicsListener.onDrawText lays out every paragraph at infinite width, using the ambient text direction. Under RTL the default TextAlign
FlutterVectorGraphicsListener.onDrawText lays out every paragraph at infinite width, using the ambient text direction. Under RTL the default TextAlign.start resolves to right, which puts each line at x = +∞, so no <text> is drawn at all. Shapes are unaffected. The listener already positions text itself (x, dx, and text-anchor through maxIntrinsicWidth), so this change sets textAlign: TextAlign.left on the paragraph. The text direction is still passed through, so bidi handling is unchanged.
The new test renders <text x="10"> under both directions and checks that ink is painted and starts at x ≈ 10. Without the fix, rtl paints no pixels.
Fixes flutter/flutter#195182
🤖 Generated with Claude Code
[vector_graphics] Dispose pictures decoded after their VectorGraphic …
[vector_graphics] Dispose pictures decoded after their VectorGraphic …
VectorGraphic is removed before
loading finishes.[vector_graphics] Don't report a handled loading error as unhandled (…
[vector_graphics] Don't report a handled loading error as unhandled (…
errorBuilder handles it.Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
semanticsLabel is provided without an ambient Directionality (flutter/flutter#175532).Fixes text-anchor on with multiple children. The anchor now applies to the entire anchored chunk as required by the SVG spec, instead of independently
text-anchor on <text> with multiple <tspan> children. The
anchor now applies to the entire anchored chunk as required by the SVG
spec, instead of independently to each tspan.Fixes uncaught StateError and NoSuchMethodError from useHtmlRenderObject() on CanvasKit / iOS Safari so SVG widgets fall back to the HTML render objec
StateError and NoSuchMethodError from useHtmlRenderObject() on CanvasKit / iOS Safari so SVG widgets fall back to the HTML render object.Adds imageBuilder property to VectorGraphic for wrapping the loaded vector graphic widget.
imageBuilder property to VectorGraphic for wrapping the loaded vector graphic widget.Corrected width/height parameter documentation in VectorGraphic widget.
Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
Allow transition between placeholder and loaded image to have an animation.
Reverts leaker tracker changes that caused runtime exceptions.
Fixes some memory leaks by disposing undisposed ImageInfo, ui.Picture and Picture.
ImageInfo, ui.Picture and Picture.Updates error handling in VectorGraphicWidget to handle errors when the bytes of the graphic cannot be loaded.
Relaxes dependency constraint on vector_graphics_codec.
Fix execution on the web with WebAssembly.
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 decoding control points as IEEE 754-2008 half precision floating point values.
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 fill colors on use/group elements.
Better support for synchronous usage in testing.
ImageCache for images.Fix issue in matrix parsing for some combinations of matrices.
Nothing published for this version
Nothing published for this version
Improved support for HTML backend.
* Support for drawing images
Added VectorGraphic which consumes encoded vector graphics assets using a BytesLoader.
VectorGraphic which consumes encoded vector graphics assets using
a BytesLoader.AssetBytesLoader and NetworkBytesLoader as example loader
implementations.* Create repository
One column per quarter.