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
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.
- vector_mathpath_drawing depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- path_parsingpath_drawing depends on itPure Dart library for parsing SVG path strings and generating Dart path code.
- easy_refreshBuilt on path_drawingA Flutter widget providing pull-down refresh and pull-up load for all scrollable widgets.
- graphicBuilt on path_drawingA grammar of data visualization and Flutter charting library.
- flutter_svgaBuilt on path_drawingFlutter SVGA animation player with intelligent caching, audio support, and dynamic elements.
- svgaplayer_flutterBuilt on path_drawingRenders SVGA animations in Flutter natively using CustomPainter.
- m3e_coreBuilt on path_drawingA Flutter package providing Material 3 expressive components and shapes.
- flutter_body_atlasBuilt on path_drawingAn interactive SVG-based human body and muscle atlas widget for Flutter.