Skip to content
pubscout

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.

WASM-readyQuiet but busy
$ flutter pub add path_parsing
Source repository

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.

  • math_expressions

    Parse and evaluate mathematical expressions in real, vector, and interval contexts.

  • country_code

    Provides ISO 3166-1 country codes in an enum-like class with parsing and user-assigned elements.

  • async_extension

    Dart async extensions for Future, FutureOr, and performance improvements.

Works with

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