flutter_svg
An SVG rendering and widget library for Flutter, which allows painting and displaying Scalable Vector Graphics 1.1 files.
2.3.0
1000K downloads/mo
#10 most downloaded on pub.dev
flutter/packages
What this package is like to depend on
Last release 3 months ago
08 May 2026
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 113 of 117 stable releases
1 version withdrawn
withdrawn after publishing
8 years old
124 releases · first in 2018
5 releases in the last 12 months
see the full history below
Release timeline
124 releases · May 2018 to May 2026Releases
latest 60 of 124-
2.3.008 May 2026Release notes
Open source →- Adds an
imageBuilderproperty toSvgPicturefor wrapping the loaded SVG widget.
- Adds an
-
2.2.406 Mar 2026Release notes
Open source →- Updates README with example to scale SVG without losing quality
- Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
-
2.2.321 Nov 2025Release notes
Open source →- Replaces use of deprecated Color.value.
- Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.
-
2.2.204 Nov 2025 -
2.2.103 Sep 2025Release notes
Open source →- Fixes message buffer access in SvgAssetLoader.
- Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
-
2.2.016 Jun 2025Release notes
Open source →- Exposes
renderingStrategyinSvgPictureconstructors. - Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
- Exposes
-
2.1.018 Apr 2025 -
2.0.1709 Jan 2025 -
2.0.1626 Nov 2024 -
2.0.1521 Nov 2024 -
2.0.1407 Nov 2024 -
2.0.1305 Nov 2024Release notes
Open source →- Relaxes the dependency constraints on vector_graphics, vector_graphics_codec, and vector_graphics_compiler.
-
2.0.1204 Nov 2024 -
2.0.1131 Oct 2024Release notes
Open source →- Transfers the package source from https://github.com/dnfield/flutter_svg to https://github.com/flutter/packages.
-
2.0.1020 Feb 2024Release notes
Open source →- Use package:http for network requests, and allow injection of the client.
- Bump vector_graphics dependency.
-
2.0.10+120 Feb 2024 -
2.0.931 Oct 2023Release notes
Open source →- Adds back
SvgPicture(theme:)parameter with a deprecation. Although this parameter was inherently broken, removing it would require a major semver bump, which would cause consumers to miss out on important fixes.
- Adds back
-
2.0.824 Oct 2023Release notes
Open source →- Adds back
DefaultSvgTheme. - Bump vector_graphics to 1.1.9+1
- Adds debugFillProperties
- Fix bug for cache keys.
- Adds back
-
2.0.712 Jun 2023 -
2.0.618 May 2023Release notes
Open source →- Fix test-only issues with latest Flutter stable (3.10).
- Roll vector_graphics to higher minimum version.
-
2.0.510 Apr 2023Release notes
Open source →- Allow malformed UTF-8 in loaders.
- Make the cache respect the SvgTheme and ColorMapper, if present.
-
2.0.414 Mar 2023Release notes
Open source →- Newer version of vector_graphics.
- Caching bug fix.
- Reintroduce clipBehavior.
-
2.0.309 Mar 2023Release notes
Open source →- Require newer version of vector_graphics.
- Fix bug in cache that incorrectly fired assert.
-
2.0.222 Feb 2023Release notes
Open source →- Require newer version of vector_graphics with multiple fixes around inheritence, patterns, and currentColor handling.
-
2.0.113 Feb 2023Release notes
Open source →- Disable Isolate parsing in debug mode.
- Fix internal Color representation leakage from
package:vector_graphics_compiler.
-
2.0.002 Feb 2023Release notes
Open source →- Use parsing backend from
vector_graphics_compiler.- Out of order defs now supported.
- Patterns supported.
- Many optimizations added.
- REGRESSION: Lost support for
dxanddyontext. See https://github.com/dnfield/vector_graphics/issues/44 if this is important to you.
- Parse SVG data in background isolate by default.
- Use widgets/rendering strategy from
vector_graphics. - Much less caching.
- More tests work without special handling - most of parsing is now sync,
and the loaders know how to avoid using
computein tests. For SVGs that contain images,vg.waitForPendingDecodesis available.
DEPRECATIONS
- The
VectorDrawableclasses have gone away. - The
AvdPictureand related classes/parser have gone away. - The
PictureCacheandPictureStreamclasses have gone away. - The
PicturePoviderclass exists only for access to a no-op cache. - Several static members on
SvgPictureand thesvgutility class have gone away. - The
colorandcolorBlendModeproperties have been removed. Instead, use thecolorFilterproperty.
- Use parsing backend from
-
2.0.0+103 Feb 2023 -
2.0.0-dev.220 Jan 2023 pre-releaseNothing published for this version
-
1.1.625 Oct 2022Release notes
Open source →- Fix transforms on image tags, clipPaths.
- Avoid painting zero-width strokes.
-
1.1.509 Sep 2022 -
1.1.417 Aug 2022 -
1.1.305 Aug 2022 -
1.1.204 Aug 2022 -
1.1.128 Jun 2022 withdrawnRelease notes
Open source →- Fix a bug introduced in 1.1.0 related to fill/stroke inheritence.
- Explicit dev_dependency on flutter_lints
- Avoid deprecated API from Flutter.
-
1.1.1+102 Jul 2022Release notes
Open source →- Fix regression introduced in 1.1.1
- Update fix for fill/stroke inheritence when currentColor is specified in the SVG but not in the theme.
-
1.1.023 May 2022Release notes
Open source →- Respect stroke* properties when a paint definition is used for a stroke.
- Respect stroke* properties from groups with no
@strokeproperty. - Bump package versions.
-
1.0.321 Jan 2022Release notes
Open source →- Use
longestLinerather thanminIntrinsicWidthto place text. - Avoid unnecessary painting when a picture doesn't actually change in [RenderPicture].
- Use
-
1.0.218 Jan 2022Release notes
Open source →- Avoid cache invalidation when
currentColoror font based units are not used. - Support
remunits.
- Avoid cache invalidation when
-
1.0.111 Jan 2022Release notes
Open source →- Fix bug with incorrect fills in some cases of
<use>elements. - Analysis cleanup of Dart code.
- Fix bug where self-closing
<g>tags could alter rendering. - Fix bug where an invalid
@stroke-dasharraycould cause an infinite loop. - Fix bugs related to nested
<g>elements in<defs>. - Remove unnecessary
sync*related code.
- Fix bug with incorrect fills in some cases of
-
1.0.002 Dec 2021Release notes
Open source →- New widget/RenderObject implementation to avoid rebuilds/paints when near or overlapping an animating widget. Also should improve raster cacheability.
- Correctly list web as a supported platform.
- Support for em/ex units.
- Stable 1.0.0 release.
-
0.23.013 Oct 2021Release notes
Open source →- Support for currentColor
- Some API breaks around PictureProvider to support currentColor
- Support for
xml:space - Support for
text-decoration - Support for
font-style
-
0.23.0+113 Oct 2021 -
0.22.022 Apr 2021Release notes
Open source →- Expose
PictureCacheonPictureProvider, and deprecatePictureProvider.cacheCountandPictureProvider.clearCache. This is intended to allow users to set a maximum cache size, which was previously impossible.
- Expose
-
0.21.006 Apr 2021 -
0.21.0+107 Apr 2021 -
0.21.0-nullsafety.106 Apr 2021 pre-releaseRelease notes
Open source →- Fix bug introduced when width and height are both null on the widget.
- Use more efficient method for XML attribute parsing.
-
0.21.0-nullsafety.024 Feb 2021 pre-releaseRelease notes
Open source →- Fix sizing when both width and height are null. This is potentially breaking.
- Bump versions to stable nullsafe when possible
- Update README with links to alternative implementations of SVG in Flutter.
- Attempt to report file source/key when errors happen.
- Add missing platforms to example project, update Android embedding.
- Minor fixes for future error handling to respect new Dart rules/expectations.
-
0.20.0-nullsafety.316 Dec 2020 pre-release -
0.20.0-nullsafety.209 Dec 2020 pre-release -
0.20.0-nullsafety.003 Dec 2020 pre-releaseRelease notes
Open source →- Initial release with null safety
- Remove dead code
- Fix up incorrect
catchErrorusages
-
0.19.326 Feb 2021Nothing published for this version
-
0.19.219 Nov 2020Release notes
Open source →- Allow for opt-in/out of color filter caching behavior, undeprecate color filtering on the providers, and allow for a global override.
-
0.19.2+120 Nov 2020 -
0.19.119 Oct 2020 -
0.19.011 Sep 2020Release notes
Open source →- Avoid unnecessary cache invalidation of SVGs drawn with color changes by:
- Deprecate color filter related options on PictureProvider classes.
- Make ColorFilter a property on SvgPicture
- Use the ColorFiltered widget for filtered SVGs.
- Fix RTL rendering bug
- Avoid unnecessary cache invalidation of SVGs drawn with color changes by:
-
0.18.121 Aug 2020Release notes
Open source →- Bump the path_drawing dependency to 0.4.1+1
- Expose clipBehavior from FittedBox
- Expose SVG ids in
Drawable*classes. - Change type of
alignmenttoAlignmentGeometryonSvgPicture. - Fixed bug in transform parsing
-
0.18.008 Jun 2020Release notes
Open source →- Drop DiagnosticbleMixin usage.
- Bump XML dependency to ^4.1.0 and resolve deprecated API usages.
- Await futures in tests.
-
0.17.407 Apr 2020Release notes
Open source →- Allow
precachePictureto takenullfor aBuildContext. - Provide a clearer error message when nested
<svg>elements are used.
- Allow
-
0.17.309 Mar 2020Release notes
Open source →- Be more permissive about whitespace in transform attributes.
- Stop defaulting color to black when not present, fixing issue with colors
carried over from
useelements.
-
0.17.3+109 Mar 2020Release notes
Open source →- Fixed regression in v0.17.3 for shape elements with no explicit fill but explicit opacity.