Skip to content
pubscout

vector_graphics_codec

1.2.0, released 10 days ago by flutter.dev

Encoding and decoding library for the vector_graphics binary format

WASM-ready
$ flutter pub add vector_graphics_codec
Source repository

What it does

Provides the low-level binary encoder and decoder used by vector_graphics and vector_graphics_compiler. It serializes vector graphics commands into a compact binary format and decodes them back for rendering. The package is strictly an internal building block and is not intended for standalone use.

AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building custom vector graphics tooling or compilers that target the package:vector_graphics format
  • Extending or debugging the binary serialization pipeline between vector_graphics_compiler and vector_graphics

Skip it when

  • Developing regular Flutter apps where you only need to display SVGs or vector assets (use vector_graphics or flutter_svg instead)
  • You require a stable serialization format across major/minor versions

Strengths

  • Zero external dependencies
  • Highly optimized binary format for fast decoding and small payload sizes
  • Maintained directly under flutter/packages

Weaknesses

  • Explicitly offers no format stability guarantees across versions
  • Not intended for direct general use outside vector_graphics companion packages

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Internal encoding utility; usually pulled in transitively rather than manually configured.

Alternatives

Packages that do the same job and could replace vector_graphics_codec.

  • jovial_svg

    SVG - Robust rendering of Scalable Vector Graphic images, supporting a well-defined profile of SVG, a fast-loading binary storage format, and animation.

  • full_svg_flutter

    Complete SVG runtime for Flutter with support for static vectors, SMIL, CSS, and filters.

  • cached_network_svg_image

    Load and cache SVG images from the network in Flutter

  • svg_flag

    Curated collection of all country flags in SVG format for Flutter.

Works with

Packages commonly used together with vector_graphics_codec: ones it builds on, ones built on it, and its own family.