Skip to main content

vector_graphics 1.3.0 copy "vector_graphics: ^1.3.0" to clipboard
vector_graphics: ^1.3.0 copied to clipboard

A vector graphics rendering package for Flutter using a binary encoding.

1.3.0 #

  • Adds support for SVG filters (feGaussianBlur, feOffset, feMerge, and feMergeNode).

1.2.7 #

  • Fixes uncaught surface-creation throwables (such as bare JavaScript strings or engine errors) from useHtmlRenderObject() so VectorGraphic widgets reliably fall back to the HTML render object and cache the fallback instead of crashing repeatedly (flutter/flutter#189451).

1.2.6 #

  • Fixes <text> not being drawn when the ambient text direction is RTL.

1.2.5 #

  • Fixes a leak of the decoded picture when a VectorGraphic is removed before loading finishes.

1.2.4 #

  • Fixes an unhandled exception reported for every asynchronous loading failure, such as an asset that fails to load, even when errorBuilder handles it.
  • Updates minimum supported SDK version to Flutter 3.41/Dart 3.11.
  • Removes unnecessary Material imports.
  • Fixes deprecation lints.

1.2.3 #

  • Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
  • Fixes a crash when a semanticsLabel is provided without an ambient Directionality (flutter/flutter#175532).

1.2.2 #

  • Fixes 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.

1.2.1 #

  • Fixes uncaught StateError and NoSuchMethodError from useHtmlRenderObject() on CanvasKit / iOS Safari so SVG widgets fall back to the HTML render object.

1.2.0 #

  • Adds imageBuilder property to VectorGraphic for wrapping the loaded vector graphic widget.

1.1.21 #

  • Corrected width/height parameter documentation in VectorGraphic widget.

1.1.20 #

  • Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
  • Respect BoxFit parameter when viewbox is specified.

1.1.19 #

  • Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
  • Enhance image handling by adding validity checks and clear error messages for improved robustness and maintainability.

1.1.18 #

  • Allow transition between placeholder and loaded image to have an animation.

1.1.17 #

  • Reverts leaker tracker changes that caused runtime exceptions.

1.1.16 #

  • Fixes some memory leaks by disposing undisposed ImageInfo, ui.Picture and Picture.

1.1.15 #

  • Updates error handling in VectorGraphicWidget to handle errors when the bytes of the graphic cannot be loaded.

1.1.14 #

  • Relaxes dependency constraint on vector_graphics_codec.

1.1.13 #

  • Fix execution on the web with WebAssembly.

1.1.12 #

1.1.11+1 #

  • Relax package:http constraint.

1.1.11 #

  • Use package:http to drop dependency on dart:html.

1.1.10+1 #

  • Add missing save before clip.

1.1.10 #

  • Add missing clip before saveLayer.

1.1.9+2 #

  • Fix case sensitivity on scientific notation parsing.

1.1.9+1 #

  • Fix publication error that did not have latest source code.

1.1.9 #

  • Fix handling of invalid XML @id attributes.
  • Fix handling of self-referential <use/> elements.
  • Add --out-dir option to compiler.
  • Tweak warning message for unhandled eleemnts.

1.1.8 #

  • Fix bugs in transform parsing.

1.1.7 #

  • Support for matching the ambient text direction.

1.1.6 #

  • Fix bug in text position computation when transforms are involved.

1.1.5+1 #

  • Remove/update some invalid assertions related to image formats.

1.1.5 #

  • Support for decoding control points as IEEE 754-2008 half precision floating point values.
  • Migrate the test to extend DefaultWidgetsLocalizations.
  • Added an error builder property to provide a fallback widget on exceptions.

1.1.4 #

  • Support more image formats and malformed MIME types.
  • Fix inheritence for fill-rules.

1.1.3 #

  • Further improvements to whitespace handling for text.

1.1.2 #

  • Fix handling and inheritence of none.

1.1.1 #

  • Multiple text positioning bug fixes.
  • Preserve stroke-opacity when specified.

1.1.0 #

  • 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 use elements is more correctly handled.
  • Make currentColor non-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.

1.0.1+1 #

  • Fix bug in asset loading from packages.

1.0.1 #

  • Fix handling of fill colors on use/group elements.

1.0.0+1 #

  • Fix issue in pattern decoding.
  • Fix issue in matrix parsing for some combinations of matrices.

1.0.0 #

  • Stable release.
  • Use ImageCache for images.
  • Bug fixes for image rendering.
  • Better support for synchronous usage in testing.
  • Make clipping the viewbox optional.

0.0.3 #

  • Improvements to CLI utilities.
  • Dispose unused objects.
  • Improved support for HTML backend.
  • Less aggressive rasterization strategy for flutter_svg compatibility.

0.0.2 #

  • Support for drawing images

0.0.1 #

  • Added VectorGraphic which consumes encoded vector graphics assets using a BytesLoader.
  • Added AssetBytesLoader and NetworkBytesLoader as example loader implementations.

0.0.0 #

  • Create repository
125
likes
160
points
6.39M
downloads

Documentation

API reference

Publisher

verified publisherflutter.dev

Weekly Downloads

A vector graphics rendering package for Flutter using a binary encoding.

Repository (GitHub)
View/report issues
Contributing

Topics

#svg #vector-graphics

License

BSD-3-Clause (license)

Dependencies

flutter, http, vector_graphics_codec

More

Packages that depend on vector_graphics