Skip to content
pubscout

path_drawing

1.0.1, released 4 years ago by dnfield.dev

A Flutter library to help with Canvas Path creation and manipulation.

WASM-ready
$ flutter pub add path_drawing
Source repository

What it does

Assists with creating and manipulating paths in Flutter. It supports parsing a Path from an SVG path data string, normalizing path commands, and dash paths.

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

Use it when

  • You need to parse SVG path data strings into Flutter Path objects
  • You are drawing custom paths and need to create dashed paths

Skip it when

  • You are looking for a complete SVG rendering library rather than just path parsing

Strengths

  • Simplifies parsing SVG path strings into Flutter paths
  • Supports dashed paths

Weaknesses

  • Limited feature set focusing specifically on path creation and manipulation

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3
import 'package:path_drawing/path_drawing.dart';

final trianglePath = parseSvgPathData('M150 0 L75 200 L225 200 Z');

Works with

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