vector_graphics_codec
1.2.0, released 10 days ago by flutter.dev
Encoding and decoding library for the vector_graphics binary format
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.
86Compare - full_svg_flutter
Complete SVG runtime for Flutter with support for static vectors, SMIL, CSS, and filters.
83Compare - cached_network_svg_image
Load and cache SVG images from the network in Flutter
57Compare - svg_flag
Curated collection of all country flags in SVG format for Flutter.
47Compare
Works with
Packages commonly used together with vector_graphics_codec: ones it builds on, ones built on it, and its own family.
- vector_mathSame familyVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- vector_graphics_compilerBuilt on vector_graphics_codecA compiler to convert SVGs to the binary format used by package:vector_graphics.
- vector_graphicsBuilt on vector_graphics_codecA vector graphics rendering package for Flutter using a binary encoding.
- flutter_svgBuilt on vector_graphics_codecRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.