path_parsing

1.1.0

A Dart library to help with SVG Path parsing and code generation. Used by Flutter SVG.

Download archive

Readme

path_parsing

Split from the Flutter path drawing library to create a pure Dart parsing library for SVG paths and code generation (without dependencies on Flutter runtime).

Commemoration

This package was originally authored by Dan Field and has been forked here from dnfield/dart_path_parsing. 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.

Changelog

1.1.0

  • Deprecates top-level utility functions blendPoints and reflectedPoint and some members in PathSegmentData.

1.0.3

  • Updates README.md.

1.0.2

1.0.1

1.0.0

  • Stable release.

0.2.1

  • Performance improvements to parsing.

0.2.0

  • Stable nullsafe release

0.2.0-nullsafety.0

  • Nullsafety migration.

0.1.4

  • Fix implementation of _PathOffset's == operator.

0.1.3

  • Fix a bug in decompose cubic curve - avoid trying to call toInt() on double.infinity
  • Bump test dependency.

0.1.2

  • Fix bug with smooth curve commands
  • Add deep testing

0.1.1

  • Fix link to homepage in pubspec, add example

0.1.0

  • Initial release, based on the 0.2.4 release of path_drawing

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add path_parsing
pubspec.yaml
name: path_parsing
description: >
  A Dart library to help with SVG Path parsing and code generation.  Used by Flutter SVG.
repository: https://github.com/flutter/packages/tree/main/third_party/packages/path_parsing
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_parsing%22
version: 1.1.0

environment:
  sdk: ^3.3.0

dependencies:
  meta: ^1.3.0
  vector_math: ^2.1.0

dev_dependencies:
  path: ^1.8.0
  test: ^1.16.0

topics:
  - svg
  - vector-graphics

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownload5a3507ab…5bd22c
0.1.1Cached · Upstream SHA-256 matchedDownloadf6b241cf…9b991d
0.1.2Cached · Upstream SHA-256 matchedDownload56f9c0d8…69598a
0.1.3Cached · Upstream SHA-256 matchedDownloada17cff6b…bb68b7
0.1.4Cached · Upstream SHA-256 matchedDownload4e613c81…ff683d
0.2.0-nullsafety.0Cached · Upstream SHA-256 matchedDownload779c5476…7a44ed
0.2.0Cached · Upstream SHA-256 matchedDownload9038b016…ad4a49
0.2.1Cached · Upstream SHA-256 matchedDownloadee5c47c1…700337
1.0.0Cached · Upstream SHA-256 matchedDownload9508ebdf…4183ac
1.0.1Cached · Upstream SHA-256 matchedDownloade3e67b16…fa9ccf
1.0.2Cached · Upstream SHA-256 matchedDownload45f7d6bb…97bd0e
1.0.3Cached · Upstream SHA-256 matchedDownloadcaa17e8f…bdb334
1.1.0Cached · Upstream SHA-256 matchedDownload88340293…09c6ca

Dependencies

meta "^1.3.0"

vector_math "^2.1.0"