Skip to content

Files

This branch is 149 commits behind flutter/packages:main.

vector_graphics_compiler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 28, 2024
Nov 25, 2024
Nov 25, 2024
Oct 20, 2022
Feb 28, 2022
Oct 28, 2024
Nov 25, 2024
Apr 11, 2022
Oct 28, 2024
Oct 28, 2024
Nov 25, 2024

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.