p-hatan/ mirror

pub repository

mirror.p-hatan.ir

vector_graphics

1.1.17

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

Download archive

Readme

vector_graphics

A vector graphics rendering runtime for Flutter. This package is intended for use with output from the package:vector_graphics_compiler and encoded via a tightly coupled version of package:vector_graphics_codec.

Commemoration

This package was originally authored by Dan Field and has been forked here from dnfield/vector_graphics. Dan was a member of the Flutter team at Google from 2018 until his death in 2024. Dan’s impact and contributions to Flutter were immeasurable, and we honor his memory by continuing to publish and maintain this package.

Changelog

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

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add vector_graphics
pubspec.yaml
name: vector_graphics
description: A vector graphics rendering package for Flutter using a binary encoding.
repository: https://github.com/flutter/packages/tree/main/packages/vector_graphics
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_graphics%22
version: 1.1.17

environment:
  sdk: ^3.4.0
  flutter: ">=3.22.0"

dependencies:
  flutter:
    sdk: flutter
  http: ^1.0.0
  vector_graphics_codec: ^1.1.11+1

dev_dependencies:
  flutter_test:
    sdk: flutter
  vector_graphics_compiler: ^1.1.11+1

platforms:
  android:
  ios:
  linux:
  macos:
  web:
  windows:

topics:
  - svg
  - vector-graphics

Version history

VersionPublishedArchiveSHA-256
0.0.02022-02-28T20:55:23.702530ZDownload69ced345053fa4be46bde01016ada8aa764e37660217748e4ec7c5df9fc45e55
0.0.12022-07-26T21:55:09.146303ZDownloada8038a3e74f49ef2d4d44ecb3567a15e57a67dd5bbadc33cca6379946a1bc035
0.0.22022-08-10T18:27:28.024410ZDownload693c263ba0e5aee0bc11a2b99e8cf106538491d33e236f14a71db5028e9ea564
0.0.32022-10-26T23:26:49.171486ZDownload1c0c4f64f17d754908d44e886f500798d81fe0fdb75b63b32577ecfd62d4b17f
0.0.42022-11-05T18:16:42.182051ZDownloade81c57c5c115699a54751c37e92c8e29181f4246b19a43680625837d0b83467f
0.0.52022-11-05T19:34:05.293752ZDownloadba092adfa701d9f5511e6b4ccd3f26d15bebcdd897b2543449329419ed2c6870
1.0.02022-11-18T22:24:01.720976ZDownload98993cdc70ee235b23aef702768ee66e8621cfbd524867d67012246c9e69f692
1.0.0+12023-01-20T19:00:30.328463ZDownloadbe068bd853343bf8e6ef96c03602ccc968c303a330e8cbd3d03e70ba8406e01b
1.0.12023-02-02T17:10:51.499907ZDownload09562ef5f47aa84f6567495adb6b9cb2a3192b82c352623b8bd00b300d62603b
1.1.02023-02-22T06:14:44.616728ZDownload254348b40251c995cf8301ac715486c8cfa0a93b7fdc4dbd495a30f04db1fb44
1.1.12023-03-04T02:37:56.374870ZDownloade43c38822e7d2facd790fd617ce16b10cc359a4b094d5772e3198904270918ef
1.1.22023-03-07T17:07:46.121893ZDownloadda125a371e22f259b3bc99cfc5e02100c6d6221568c90ce91d20a5d4ceb3c880
1.1.32023-03-09T03:05:53.441791ZDownload2f317d969a9f1eb59d1890643107da749698b7c08c4b0532fc95c8a7130d2803
1.1.42023-03-14T19:07:12.041959ZDownload4cf8e60dbe4d3a693d37dff11255a172594c0793da542183cbfe7fe978ae4aaa
1.1.52023-04-11T16:22:38.176738ZDownloadea8d3fc7b2e0f35de38a7465063ecfcf03d8217f7962aa2a6717132cb5d43a79
1.1.5+12023-04-24T17:58:00.666925ZDownload59a230f8bf37dd8b077335d1d64d895bccef0fb14f50730e3d79e8990bf3ed2b
1.1.62023-05-18T17:36:31.203486ZDownloadb96f10cbdfcbd03a65758633a43e7d04574438f059b1043104b5d61b23d38a4f
1.1.72023-06-12T17:21:54.997585ZDownload670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f
1.1.92023-10-12T03:16:22.091582ZDownloadb16dadf7eb610e20da044c141b4a0199a5e8082ca21daba68322756f953ce714
1.1.9+12023-10-24T22:59:47.636586ZDownload0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43
1.1.9+22024-01-08T18:00:21.686211ZDownload18f6690295af52d081f6808f2f7c69f0eed6d7e23a71539d75f4aeb8f0062172
1.1.102024-02-05T18:29:17.915908ZDownloadff64a3523ea7276fbd6554d7d8479423740546b599776dbd45e3475b12d76260
1.1.10+12024-02-06T19:34:52.420783ZDownload4ac59808bbfca6da38c99f415ff2d3a5d7ca0a6b4809c71d9cf30fba5daf9752
1.1.112024-02-20T16:47:46.934127ZDownload9b238dc09b8879bca5017e382fb4b5593085e8c960d1ad348415aed3e77cc93a
1.1.11+12024-02-20T18:13:17.077230ZDownload32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3
1.1.122024-10-31T23:26:00.920356ZDownload0b9149c6ddb013818075b072b9ddc1b89a5122fff1275d4648d297086b46c4f0
1.1.132024-10-31T21:36:53.204626ZDownload542f79cb7849237fd04ce381fa48027c5b8074e9d8921d42a2efd74510cd5a79
1.1.142024-11-05T16:16:19.334252ZDownload773c9522d66d523e1c7b25dfb95cc91c26a1e17b107039cfe147285e92de7878
1.1.152024-11-21T01:49:44.734400ZDownload27d5fefe86fb9aace4a9f8375b56b3c292b64d8c04510df230f849850d912cb7
1.1.162025-01-28T17:20:54.950771ZDownload7ed22c21d7fdcc88dd6ba7860384af438cd220b251ad65dfc142ab722fabef61
1.1.172025-01-31T18:34:02.051690ZDownloada1870d398158844fe5db12441611ed9a2222ff4340258b539eaf3590c1b4bd7e
1.1.182025-02-05T01:22:33.908307ZDownload44cc7104ff32563122a929e4620cf3efd584194eec6d1d913eb5ba593dbcf6de
1.1.192025-06-10T18:51:02.535716ZDownloada4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6
1.1.202026-03-10T21:14:08.742182ZDownload7076216a10d5c390315fbe536a30f1254c341e7543e6c4c8a815e591307772b1
1.1.212026-03-30T20:13:34.635399ZDownload81da85e9ca8885ade47f9685b953cb098970d11be4821ac765580a6607ea4373
1.2.02026-04-28T18:17:44.466401ZDownload6409a25046024f0f8c5d8a59fec314081e81f9d436b66ca4015a8b49772bf445
1.2.12026-05-11T19:02:36.957678ZDownload4d35a36400983c3457c289d4d553b5308f506ea84f7e51c7a564651b5525209a
1.2.22026-05-18T23:17:15.891974ZDownload2306c03da2ba81724afeb589c351ebbc0aa7d86005925be8f8735856dbe5e42d
1.2.32026-07-31T20:16:18.697900ZDownload9d0e3b9cb16542ad660daee871e726a10d13a93b7b5391677c3160e8f5e83935
1.2.42026-10-19T21:58:09.863426ZDownload0964703d02677ac8636b4aef95de0b7e816224ff0082908c2c950529cb9a2f5e
1.2.52026-10-29T17:46:03.998855ZDownload4e5f106dfc6f0e4e7efe11603e38c34352d912905320b930128a9b1ad61363f4

Dependencies

flutter { "sdk": "flutter" }

http "^1.0.0"

vector_graphics_codec "^1.1.11+1"