tree: b7f622e4e95e87e869019605e87e4a85e2bbed29 [path history] [tgz]
  1. bin/
  2. lib/
  3. test/
  4. test_data/
  5. .gitignore
  6. AUTHORS
  7. CHANGELOG.md
  8. dart_test.yaml
  9. LICENSE
  10. pubspec.yaml
  11. README.md
packages/vector_graphics_compiler/README.md

vector_graphics_compiler

A compiler for package:vector_graphics.

This package parses SVG files into a format that the vector_graphics runtime can render.

Features

Supported SVG features:

  • Groups, paths, and basic shapes are all supported.
  • References, including out of order references.
  • Linear and radial gradients, including radial gradients with focal points.
  • Text
  • Symbols
  • Images
  • Patterns

Unsupported SVG features:

  • Filters
  • Some text processing attributes

Optimizations:

  • Opacity peepholing
  • Transformation inlining (except for text and radial gradients)
  • Group collapsing
  • Mask and clip elimination

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.