Search packages, repositories and app categories

GitHub repositorymasterashu/svg_path_parser

svg_path_parser

A Flutter/Dart utility to parse an SVG path into a equivalent Path object from dart:ui library.

svg_path_parser project cover
Stars
19
Forks
5
Last push (UTC)
Dec 3, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

svg_path_parser

Pub Version (including pre-releases) Flutter Test package

A Flutter/Dart utility to parse an SVG path into a equivalent Path object from dart:ui library.

Getting Started

Add this to your package's pubspec.yaml file:

dependencies:
  svg_path_parser: ^1.1.2

Now in your Dart code, you can use:

import 'package:svg_path_parser/svg_path_parser.dart';

You can use parseSvgPath() to parse a valid SVG path string to Path object;

Path path = parseSvgPath('m.29 47.85 14.58 14.57 62.2-62.2h-29.02z');

Examples

View the example folder to see an example (drawing flutter logo using svg paths).

Ashutosh Chauhan GitHub avatar
GitHub author

Ashutosh Chauhan ↗

Django | Flutter 💙 Developer. Love to try out new languages, frameworks and tools.

@ClickHouse Bengaluru, IndiaOfficial website ↗
LanguagesDartHTMLKotlinSwiftObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 4 items

  • string_scanner^1.1.0
  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • testDevelopment^1.16.5

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗