path_parsing
1.1.0, released 2 years ago by flutter.dev
Pure Dart library for parsing SVG path strings and generating Dart path code.
What it does
It parses SVG path data into a structured format and can generate Dart code that recreates the path. The library is independent of the Flutter runtime, making it suitable for pure Dart projects.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to parse SVG path data into a usable format.
- You want to generate Dart code for SVG paths to embed in a Flutter or Dart app.
- You are working on a tool that transforms or analyzes SVG paths.
- You need a lightweight, pure-Dart solution without Flutter dependencies.
Skip it when
- You require runtime rendering of SVG paths without parsing.
- You need a full-featured SVG rendering engine.
- You are building a Flutter widget that directly consumes SVG paths without code generation.
Strengths
- Pure Dart, no Flutter dependencies
- Supports code generation for Dart path constructors
- Stable API with deprecation notices
- Good test coverage and performance improvements
Weaknesses
- Limited to SVG path parsing only
- Does not provide rendering or widget support
- Some utility functions are deprecated
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Alternatives
Packages that do the same job and could replace path_parsing.
- qr
A pure‑Dart library for generating QR code data and image matrices.
94Compare - math_expressions
Parse and evaluate mathematical expressions in real, vector, and interval contexts.
79Compare - country_code
Provides ISO 3166-1 country codes in an enum-like class with parsing and user-assigned elements.
77Compare - async_extension
Dart async extensions for Future, FutureOr, and performance improvements.
74Compare
Works with
Packages commonly used together with path_parsing: ones it builds on, ones built on it, and its own family.
- vector_mathpath_parsing depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- path_provider_androidSame familyAndroid implementation of the path_provider plugin for finding commonly used locations.
- path_providerSame familyProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- path_provider_windowsSame familyWindows implementation of the path_provider plugin
- path_provider_foundationSame familyiOS/macOS implementation of path_provider using direct FFI calls
- material_uiSame familyOfficial Flutter Material UI library implementing Google’s Material Design system.
- flutter_shadersSame familyUtilities and shaders for working with the FragmentProgram API in Flutter
- vector_graphics_compilerBuilt on path_parsingA compiler to convert SVGs to the binary format used by package:vector_graphics.